- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for test_invalid_simple_dict (0.08 seconds)
-
tests/test_invalid_path_param.py
def test_invalid_simple_set(): with pytest.raises(AssertionError): app = FastAPI() @app.get("/items/{id}") def read_items(id: set): pass # pragma: no cover def test_invalid_simple_dict(): with pytest.raises(AssertionError): app = FastAPI() @app.get("/items/{id}") def read_items(id: dict):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 1.6K bytes - Click Count (0) -
tests/test_invalid_sequence_param.py
class Item(BaseModel): title: str @app.get("/items/") def read_items(q: dict[str, Item] = Query(default=None)): pass # pragma: no cover def test_invalid_simple_dict(): with pytest.raises( AssertionError, match="Query parameter 'q' must be one of the supported types", ): app = FastAPI() class Item(BaseModel):Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 1.5K bytes - Click Count (0)