We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a9b95 commit de0db8cCopy full SHA for de0db8c
packages/models-library/tests/test_utils_fastapi_encoders.py
@@ -14,6 +14,9 @@
14
def test_using_uuids_as_keys(faker: Faker):
15
uuid_key = uuid4()
16
17
+ # this was previously failing
18
+ assert json_dumps({uuid_key: "value"}, indent=1)
19
+
20
# uuid keys now serialize without raising to the expected format string
21
data = servicelib_jsonable_encoder({uuid_key: "value"})
22
assert data == {f"{uuid_key}": "value"}
0 commit comments