Skip to content

Commit b8fa514

Browse files
authored
docs: fix typos in TestClient docs and test_requests comment (#3266)
1 parent e935b6b commit b8fa514

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/testclient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def hello(request: Request) -> PlainTextResponse:
210210
app = Starlette(routes=[Route("/", hello)])
211211

212212

213-
# if you're using pytest, you'll need to to add an async marker like:
213+
# if you're using pytest, you'll need to add an async marker like:
214214
# @pytest.mark.anyio # using https://github.com/agronholm/anyio
215215
# or install and configure pytest-asyncio (https://github.com/pytest-dev/pytest-asyncio)
216216
async def test_app() -> None:

tests/test_requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ async def app(scope: Scope, receive: Receive, send: Send) -> None:
437437
"abc=def; unnamed; django_language=en",
438438
{"": "unnamed", "abc": "def", "django_language": "en"},
439439
),
440-
# Even a double quote may be an unamed value.
440+
# Even a double quote may be an unnamed value.
441441
('a=b; "; c=d', {"a": "b", "": '"', "c": "d"}),
442442
# Spaces in names and values, and an equals sign in values.
443443
("a b c=d e = f; gh=i", {"a b c": "d e = f", "gh": "i"}),

0 commit comments

Comments
 (0)