Browse Source

Updated test file (test_tutorial006.py).

pull/15144/head
venkatasaikumarguntupalli 4 months ago
parent
commit
96bf263366
  1. 5
      tests/test_tutorial/test_path_params/test_tutorial006.py

5
tests/test_tutorial/test_path_params/test_tutorial006.py

@ -3,10 +3,7 @@ from fastapi.testclient import TestClient
app = FastAPI()
@app.get("/items/{item_id}")
def read_item(item_id: int = Path(..., ge=1, le=1000)):
return {"item_id": item_id}
from docs_src.path_params.tutorial006_py310 import app
client = TestClient(app)

Loading…
Cancel
Save