From 3f40fa7e308d3ddcb6b81f96b4a21069abd18412 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 17 Jan 2025 12:50:53 +0100 Subject: [PATCH] add apostrophes so the test works --- tests/test_responses.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_responses.py b/tests/test_responses.py index ca9c8158..e9dac76e 100644 --- a/tests/test_responses.py +++ b/tests/test_responses.py @@ -57,7 +57,7 @@ def route_nine() -> None: @get("/ten", media_type=MediaType.TEXT) def route_ten() -> str: - return "hello" + return "hel\"'lo" def test_ujson_response(test_client_factory): @@ -123,7 +123,7 @@ def test_str_returnal_non_json(test_client_factory): with create_client(routes=[Gateway(handler=route_ten)]) as client: response = client.get("/ten") - assert response.text == "hello" + assert response.text == "hel\"'lo" def test_implicit_none_returnal(test_client_factory):