- Sort Score
- Num 10 results
- Language All
Results 1 - 1 of 1 for test_complex (0.32 seconds)
-
tests/test_compat.py
from fastapi._compat import v2 # For coverage field_info = FieldInfo(annotation=str) field = v2.ModelField(name="foo", field_info=field_info) assert field.default is Undefined def test_complex(): app = FastAPI() @app.post("/") def foo(foo: str | list[int]): return foo client = TestClient(app) response = client.post("/", json="bar")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 17 09:59:14 GMT 2026 - 4.2K bytes - Click Count (0)