- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 92 for doe (0.01 sec)
-
tests/test_tutorial/test_python_types/test_tutorial010.py
from docs_src.python_types.tutorial010_py39 import Person, get_person_name def test_get_person_name():
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 166 bytes - Viewed (0) -
docs_src/python_types/tutorial011_py310.py
from pydantic import BaseModel class User(BaseModel): id: int name: str = "John Doe" signup_ts: datetime | None = None friends: list[int] = [] external_data = { "id": "123", "signup_ts": "2017-06-01 12:22", "friends": [1, "2", b"3"], } user = User(**external_data) print(user) # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3] print(user.id)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 02 15:56:35 UTC 2023 - 461 bytes - Viewed (0) -
tests/test_response_model_as_return_annotation.py
return User(name="John", surname="Doe") @app.get("/no_response_model-no_annotation-return_dict") def no_response_model_no_annotation_return_dict(): return {"name": "John", "surname": "Doe"} @app.get("/response_model-no_annotation-return_same_model", response_model=User) def response_model_no_annotation_return_same_model(): return User(name="John", surname="Doe")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 47.7K bytes - Viewed (0) -
tests/test_stringified_annotation_dependency.py
from inline_snapshot import snapshot if TYPE_CHECKING: # pragma: no cover from collections.abc import AsyncGenerator class DummyClient: async def get_people(self) -> list: return ["John Doe", "Jane Doe"] async def close(self) -> None: pass async def get_client() -> AsyncGenerator[DummyClient, None]: client = DummyClient() yield client await client.close()Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 2.2K bytes - Viewed (0) -
tests/test_tutorial/test_python_types/test_tutorial012.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 177 bytes - Viewed (0) -
docs_src/python_types/tutorial011_py39.py
class User(BaseModel): id: int name: str = "John Doe" signup_ts: Union[datetime, None] = None friends: list[int] = [] external_data = { "id": "123", "signup_ts": "2017-06-01 12:22", "friends": [1, "2", b"3"], } user = User(**external_data) print(user) # > User id=123 name='John Doe' signup_ts=datetime.datetime(2017, 6, 1, 12, 22) friends=[1, 2, 3] print(user.id)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Sep 02 15:56:35 UTC 2023 - 492 bytes - Viewed (0) -
tests/test_tutorial/test_body_multiple_params/test_tutorial002.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 11K bytes - Viewed (0) -
tests/test_tutorial/test_extra_models/test_tutorial001_tutorial002.py
"password": "secret", "email": "******@****.***", "full_name": "John Doe", }, ) assert response.status_code == 200, response.text assert response.json() == { "username": "johndoe", "email": "******@****.***", "full_name": "John Doe", } def test_openapi_schema(client: TestClient): response = client.get("/openapi.json")
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Fri Dec 26 10:43:02 UTC 2025 - 5.5K bytes - Viewed (0) -
tests/test_union_forms.py
client = TestClient(app) def test_post_user_form(): response = client.post( "/form-union/", data={"name": "John Doe", "email": "******@****.***"} ) assert response.status_code == 200, response.text assert response.json() == { "received": {"name": "John Doe", "email": "******@****.***"} } def test_post_company_form(): response = client.post(
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 5.2K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/entity/ExtractDataTest.java
} public void test_putValue() { // Test putValue method ExtractData data = new ExtractData(); data.putValue("title", "Test Title"); data.putValue("author", "John Doe"); String[] titleValues = data.getValues("title"); assertNotNull(titleValues); assertEquals(1, titleValues.length); assertEquals("Test Title", titleValues[0]);Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 9.9K bytes - Viewed (0)