Skip to content

Commit 43590ae

Browse files
committed
tests - fix base64 not having a newline
c.f. pydantic/pydantic#10486
1 parent 21eecef commit 43590ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/schema_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ def test_schema_type_string_format_byte_base64(with_schema_type_string_format_by
161161
api = OpenAPI("/", with_schema_type_string_format_byte_base64)
162162
b64 = api.components.schemas["Base64Property"].get_type()
163163
RAW = "test"
164-
B64 = {"data": "dGVzdA==\n"}
164+
B64 = {"data": "dGVzdA=="}
165165
v = b64.model_validate(B64)
166166
assert v.model_dump() == B64
167167
assert v.data == RAW

0 commit comments

Comments
 (0)