test_uuid_database_type.py 文件源码

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

项目:TopChef 作者: TopChef 项目源码 文件源码
def test_bind_uuid_something_else(self, uuid: UUID) -> None:
        """
        Tests that the UUID gets de-hyphenated if using the CHAR 32 type, same
        as always.

        :param uuid: A randomly-generated UUID to store
        """
        db_uuid = DB_UUID()
        value_to_store = db_uuid.process_bind_param(
            uuid, self.sqlite_dialect
        )
        self.assertEqual(
            value_to_store, "%.32x" % int(uuid)
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号