Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Item1 (0.17 sec)

  1. tests/test_generate_unique_id_function.py

        @app.post("/")
        def post_root(item1: Item):
            return item1  # pragma: nocover
    
        @app.post("/second")
        def post_second(item1: Item):
            return item1  # pragma: nocover
    
        @app.post("/third")
        def post_third(item1: Item):
            return item1  # pragma: nocover
    
        client = TestClient(app)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jan 13 15:10:26 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  2. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/JavadocConverterTest.groovy

            _ * classMetaData.rawCommentText >> '<ul><li>item1</li></ul>'
    
            when:
            def result = parser.parse(classMetaData, listener)
    
            then:
            format(result.docbook) == '''<itemizedlist><listitem>item1</listitem></itemizedlist>'''
        }
    
        def convertsOlAndLiElementsToOrderedListElements() {
            _ * classMetaData.rawCommentText >> '<ol><li>item1</li></ol>'
    
            when:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 14.2K bytes
    - Viewed (0)
  3. docs_src/extra_models/tutorial003_py310.py

        description: str
        type: str
    
    
    class CarItem(BaseItem):
        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,
        },
    }
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 644 bytes
    - Viewed (0)
  4. docs_src/extra_models/tutorial003.py

        description: str
        type: str
    
    
    class CarItem(BaseItem):
        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,
        },
    }
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 644 bytes
    - Viewed (1)
  5. tests/test_tutorial/test_extra_models/test_tutorial003_py310.py

    def get_client():
        from docs_src.extra_models.tutorial003_py310 import app
    
        client = TestClient(app)
        return client
    
    
    @needs_py310
    def test_get_car(client: TestClient):
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    @needs_py310
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 5.3K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_extra_models/test_tutorial003.py

    from dirty_equals import IsOneOf
    from fastapi.testclient import TestClient
    
    from docs_src.extra_models.tutorial003 import app
    
    client = TestClient(app)
    
    
    def test_get_car():
        response = client.get("/items/item1")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "description": "All my friends drive a low rider",
            "type": "car",
        }
    
    
    def test_get_plane():
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Aug 04 20:47:07 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  7. tests/query_test.go

    		Flag:    true,
    		Number1: 100,
    		Number2: 200,
    		Number3: 300.1,
    		Now:     &now,
    		Item1: &QueryResetItem{
    			ID:   "u_1_1",
    			Name: "item_1_1",
    		},
    		Item2: &QueryResetItem{
    			ID:   "u_1_2",
    			Name: "item_1_2",
    		},
    	}
    
    	q2 := QueryResetNullValue{
    		Item1: &QueryResetItem{
    			ID:   "u_2_1",
    			Name: "item_2_1",
    		},
    		Item2: &QueryResetItem{
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top