diff --git a/docs/en/docs/advanced/testing-events.md b/docs/en/docs/advanced/testing-events.md index 9a5aa4bae..d67583de8 100644 --- a/docs/en/docs/advanced/testing-events.md +++ b/docs/en/docs/advanced/testing-events.md @@ -10,4 +10,4 @@ You can read more details about the ["Running lifespan in tests in the official For the deprecated `startup` and `shutdown` events, you can use the `TestClient` as follows: -{* ../../docs_src/app_testing/tutorial003.py hl[9:12,20:24] *} \ No newline at end of file +{* ../../docs_src/app_testing/tutorial003.py hl[9:12,20:24] *} diff --git a/docs_src/app_testing/tutorial003.py b/docs_src/app_testing/tutorial003.py index d1a943cce..ca6b45ce0 100644 --- a/docs_src/app_testing/tutorial003.py +++ b/docs_src/app_testing/tutorial003.py @@ -21,4 +21,4 @@ def test_read_items(): with TestClient(app) as client: response = client.get("/items/foo") assert response.status_code == 200 - assert response.json() == {"name": "Fighters"} \ No newline at end of file + assert response.json() == {"name": "Fighters"}