add related model load tests

This commit is contained in:
collerek
2021-03-10 14:01:16 +01:00
parent 01904580e5
commit 50ddd1c2bb
5 changed files with 45 additions and 11 deletions

View File

@ -144,7 +144,7 @@ class EncryptedString(types.TypeDecorator):
self.type_: Any = type_
def __repr__(self) -> str: # pragma: nocover
return f"TEXT()"
return "TEXT()"
def load_dialect_impl(self, dialect: DefaultDialect) -> Any:
return dialect.type_descriptor(types.TEXT())