- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for read_root (0.2 sec)
-
tests/test_computed_fields.py
width: int length: int @computed_field @property def area(self) -> int: return self.width * self.length @app.get("/") def read_root() -> Rectangle: return Rectangle(width=3, length=4) client = TestClient(app) return client @needs_pydanticv2 def test_get(client: TestClient): response = client.get("/")
Python - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Fri Aug 04 20:47:07 GMT 2023 - 2.2K bytes - Viewed (0)