Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests - fix base64 not having a newline
Browse files Browse the repository at this point in the history
commonism committed Jan 11, 2025
1 parent 3dc2995 commit eb2fbca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/schema_test.py
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ def test_schema_type_string_format_byte_base64(with_schema_type_string_format_by
api = OpenAPI("/", with_schema_type_string_format_byte_base64)
b64 = api.components.schemas["Base64Property"].get_type()
RAW = "test"
B64 = {"data": "dGVzdA==\n"}
B64 = {"data": "dGVzdA=="}
v = b64.model_validate(B64)
assert v.model_dump() == B64
assert v.data == RAW

0 comments on commit eb2fbca

Please sign in to comment.