- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for send_body_embed (0.06 sec)
-
tests/test_required_noneable.py
@app.get("/query") def read_query(q: Union[str, None]): return q @app.get("/explicit-query") def read_explicit_query(q: Union[str, None] = Query()): return q @app.post("/body-embed") def send_body_embed(b: Union[str, None] = Body(embed=True)): return b client = TestClient(app) def test_required_nonable_query_invalid(): response = client.get("/query") assert response.status_code == 422
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat May 14 19:08:31 UTC 2022 - 1.5K bytes - Viewed (0)