Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expected_json (0.14 sec)

  1. tests/test_tutorial/test_query_params/test_tutorial001.py

            (
                "/items/?skip=1&limit=1",
                [{"item_name": "Bar"}],
            ),
        ],
    )
    def test_read_user_item(client: TestClient, path, expected_json):
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == expected_json
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params/test_tutorial002.py

        return client
    
    
    @pytest.mark.parametrize(
        ("path", "expected_json"),
        [
            (
                "/items/foo",
                {"item_id": "foo"},
            ),
            (
                "/items/bar?q=somequery",
                {"item_id": "bar", "q": "somequery"},
            ),
        ],
    )
    def test_read_user_item(client: TestClient, path, expected_json):
        response = client.get(path)
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params/test_tutorial003.py

            (
                "/items/baz?short=true",
                {"item_id": "baz"},
            ),
        ],
    )
    def test_read_user_item(client: TestClient, path, expected_json):
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == expected_json
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_query_params/test_tutorial004.py

                {"item_id": "baz", "owner_id": 42},
            ),
        ],
    )
    def test_read_user_item(client: TestClient, path, expected_json):
        response = client.get(path)
        assert response.status_code == 200
        assert response.json() == expected_json
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5.3K bytes
    - Viewed (0)
Back to top