MCPcopy
hub / github.com/fastapi/fastapi / test_read_main

Function test_read_main

docs_src/app_testing/tutorial002_py310.py:20–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18
19
20def test_read_main():
21 client = TestClient(app)
22 response = client.get("/")
23 assert response.status_code == 200
24 assert response.json() == {"msg": "Hello World"}
25
26
27def test_websocket():

Callers 1

test_mainFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…