From eb2fbcaad44ebdb555be76b18c267ea76da1789b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20K=C3=B6tter?= Date: Sat, 11 Jan 2025 10:00:02 +0100 Subject: [PATCH] tests - fix base64 not having a newline c.f. https://github.com/pydantic/pydantic/pull/10486 --- tests/schema_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/schema_test.py b/tests/schema_test.py index 0d2c1b70..b918c831 100644 --- a/tests/schema_test.py +++ b/tests/schema_test.py @@ -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