Browse Source

tests/test_tutorial/test_middleware/test_tutorial001.py: fixing a typo

pull/13525/head
alv2017 2 weeks ago
parent
commit
f8e9d690f9
  1. 1
      tests/test_tutorial/test_middleware/test_tutorial001.py

1
tests/test_tutorial/test_middleware/test_tutorial001.py

@ -10,7 +10,6 @@ def test_add_process_time_header_middleware():
assert response.json() == {"hello": "world"} assert response.json() == {"hello": "world"}
assert "X-Process-Time" in response.headers assert "X-Process-Time" in response.headers
assert len(response.headers["X-Process-Time"]) > 0 assert len(response.headers["X-Process-Time"]) > 0
# request/response process time # request/response process time
process_time = response.headers["X-Process-Time"] process_time = response.headers["X-Process-Time"]
assert float(process_time) > 0 assert float(process_time) > 0

Loading…
Cancel
Save