MCPcopy Index your code
hub / github.com/fastapi/fastapi / test_events

Function test_events

tests/test_tutorial/test_events/test_tutorial002.py:17–23  ·  view source on GitHub ↗
(app: FastAPI)

Source from the content-addressed store, hash-verified

15
16@workdir_lock
17def test_events(app: FastAPI):
18 with TestClient(app) as client:
19 response = client.get("/items/")
20 assert response.status_code == 200, response.text
21 assert response.json() == [{"name": "Foo"}]
22 with open("log.txt") as log:
23 assert "Application shutdown" in log.read()
24
25
26@workdir_lock

Callers

nothing calls this directly

Calls 2

readMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…