Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Item2 (0.15 sec)

  1. 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)
  2. tests/test_dependency_duplicates.py

        return item
    
    
    def dependency(item2: Item):
        return item2
    
    
    def sub_duplicate_dependency(
        item: Item, sub_item: Item = Depends(duplicate_dependency)
    ):
        return [item, sub_item]
    
    
    @app.post("/with-duplicates")
    async def with_duplicates(item: Item, item2: Item = Depends(duplicate_dependency)):
        return [item, item2]
    
    
    @app.post("/no-duplicates")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
Back to top