- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for myitem2 (0.06 sec)
-
tests/test_dependency_duplicates.py
def test_duplicates(): response = client.post("/with-duplicates", json={"data": "myitem"}) assert response.status_code == 200, response.text assert response.json() == [{"data": "myitem"}, {"data": "myitem"}] def test_sub_duplicates(): response = client.post("/with-duplicates-sub", json={"data": "myitem"}) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 8K bytes - Viewed (0) -
tests/test_generate_unique_id_function.py
def post_root(item1: Item, item2: Item): return item1, item2 # pragma: nocover @router.post( "/router", response_model=list[Item], responses={404: {"model": list[Message]}} ) def post_router(item1: Item, item2: Item): return item1, item2 # pragma: nocover app.include_router(router) client = TestClient(app)
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 66.7K bytes - Viewed (0) -
docs_src/extra_models/tutorial003_py39.py
type: str = "car" class PlaneItem(BaseItem): type: str = "plane" size: int items = { "item1": {"description": "All my friends drive a low rider", "type": "car"}, "item2": { "description": "Music is my aeroplane, it's my aeroplane", "type": "plane", "size": 5, }, } @app.get("/items/{item_id}", response_model=Union[PlaneItem, CarItem])
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 644 bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/index/writer/SuggestIndexWriterTest.java
SuggestItem item2 = new SuggestItem(new String[] { "ใในใ" }, readings, new String[] { "content" }, 2, 0, -1, new String[] { "tag2" }, new String[] { SuggestConstants.DEFAULT_ROLE }, null, SuggestItem.Kind.DOCUMENT); SuggestItem[] mergedItems = writer.mergeItems(new SuggestItem[] { item1, item2 }); assertNotNull(mergedItems);Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 18.2K bytes - Viewed (0) -
tests/test_tutorial/test_extra_models/test_tutorial003.py
assert response.json() == { "description": "All my friends drive a low rider", "type": "car", } def test_get_plane(client: TestClient): response = client.get("/items/item2") assert response.status_code == 200, response.text assert response.json() == { "description": "Music is my aeroplane, it's my aeroplane", "type": "plane", "size": 5, }
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
assertEquals(arr.length, result.length); assertEquals(arr[0], result[0]); // Test ArrayList final List<String> list = new ArrayList<>(); list.add("item1"); list.add("item2"); binary = SerializeUtil.fromObjectToBinary(list); @SuppressWarnings("unchecked") final List<String> resultList = (List<String>) SerializeUtil.fromBinaryToObject(binary);
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 7.6K bytes - Viewed (0) -
docs/en/docs/release-notes.md
* This applies to ORMs like SQLAlchemy, Peewee, Tortoise ORM, GINO ORM and virtually any other. * If your *path operations* return an arbitrary object with attributes (e.g. `my_item.name` instead of `my_item["name"]`) AND you use a `response_model`, make sure to update the Pydantic models with `orm_mode = True` as described in the docs (link above).Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 19:06:15 UTC 2025 - 586.7K bytes - Viewed (0)