Debian Codegraph @

tests/test_docs/test_index.py

raw symbols SCIP
1 from docs.src.index001 import api
2 from ninja.testing import TestClient
3
4 client = TestClient(api)
5
6
7 def test_api():
8 response = client.get("/add?a=1&b=2")
9 assert response.json() == {"result": 3}