def test_name_postgresql(self) -> None:
"""
Tests that if the name ``postgresql`` is passed into the UUID
database type, then PostgreSQL's UUID type is loaded as a dialect for
the UUID type.
The returned type descriptor should be the same as the postgresql UUID
database type
"""
uuid_instance = DB_UUID()
dialect_impl = uuid_instance.load_dialect_impl(self.pg_sql_dialect)
self.assertIsInstance(
dialect_impl, self.pg_sql_dialect.type_descriptor(
postgresql.UUID()
).__class__
)
评论列表
文章目录