test_uuid_database_type.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:TopChef 作者: TopChef 项目源码 文件源码
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__
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号