Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/13525/head
pre-commit-ci[bot] 2 weeks ago
parent
commit
ebfbf18aa3
  1. 4
      tests/test_tutorial/test_middleware/test_tutorial001.py
  2. 3
      tests/test_tutorial/test_middleware/test_tutorial002.py

4
tests/test_tutorial/test_middleware/test_tutorial001.py

@ -1,6 +1,7 @@
from docs_src.middleware.tutorial001 import app
from fastapi.testclient import TestClient
from docs_src.middleware.tutorial001 import app
def test_add_process_time_header_middleware():
client = TestClient(app)
@ -9,4 +10,3 @@ def test_add_process_time_header_middleware():
assert response.json() == {"hello": "world"}
assert "X-Process-Time" in response.headers
assert len(response.headers["X-Process-Time"]) > 0

3
tests/test_tutorial/test_middleware/test_tutorial002.py

@ -1,6 +1,7 @@
from docs_src.middleware.tutorial002 import app
from fastapi.testclient import TestClient
from docs_src.middleware.tutorial002 import app
def test_add_process_time_header_middleware():
client = TestClient(app)

Loading…
Cancel
Save