Skip to content

Commit de0db8c

Browse files
author
Andrei Neagu
committed
fixed previously failing test
1 parent 25a9b95 commit de0db8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/models-library/tests/test_utils_fastapi_encoders.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
def test_using_uuids_as_keys(faker: Faker):
1515
uuid_key = uuid4()
1616

17+
# this was previously failing
18+
assert json_dumps({uuid_key: "value"}, indent=1)
19+
1720
# uuid keys now serialize without raising to the expected format string
1821
data = servicelib_jsonable_encoder({uuid_key: "value"})
1922
assert data == {f"{uuid_key}": "value"}

0 commit comments

Comments
 (0)