Skip to content

Commit

Permalink
add apostrophes so the test works
Browse files Browse the repository at this point in the history
  • Loading branch information
devkral committed Jan 17, 2025
1 parent 7d11491 commit 3f40fa7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 3f40fa7

Please sign in to comment.