def test_bind_uuid_postgres(self, uuid: UUID) -> None:
"""
Tests that if the UUID is passed to a Postgres dialect, that it is
returned as a string with hyphens
:param uuid: A randomly-generated UUID to store
"""
db_uuid = DB_UUID()
value_to_store = db_uuid.process_bind_param(
uuid, self.pg_sql_dialect
)
self.assertEqual(value_to_store, str(uuid))
评论列表
文章目录