- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for some_arg (0.03 sec)
-
tests/test_callable_endpoint.py
from fastapi.testclient import TestClient def main(some_arg, q: Optional[str] = None): return {"some_arg": some_arg, "q": q} endpoint = partial(main, "foo") app = FastAPI() app.get("/")(endpoint) client = TestClient(app) def test_partial(): response = client.get("/?q=bar") data = response.json()
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Jun 28 18:13:30 UTC 2020 - 457 bytes - Viewed (0)