Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 3000 (0.02 sec)

  1. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial006.py

    @pytest.mark.parametrize(
        "path,expected_response",
        [
            (
                "/items/0?q=&size=0.1",
                {"item_id": 0, "size": 0.1},
            ),
            (
                "/items/1000?q=somequery&size=10.4",
                {"item_id": 1000, "q": "somequery", "size": 10.4},
            ),
        ],
    )
    def test_read_items(client: TestClient, path, expected_response):
        response = client.get(path)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_path_params_numeric_validations/test_tutorial005.py

        )
        return TestClient(mod.app)
    
    
    @pytest.mark.parametrize(
        "path,expected_response",
        [
            ("/items/1?q=", {"item_id": 1}),
            ("/items/1000?q=somequery", {"item_id": 1000, "q": "somequery"}),
        ],
    )
    def test_read_items(client: TestClient, path, expected_response):
        response = client.get(path)
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_encoder/test_tutorial001.py

            json={
                "title": "Foo",
                "timestamp": "2023-01-01T12:00:00",
                "description": "An optional description",
            },
        )
        assert response.status_code == 200
        assert "123" in fake_db
        assert fake_db["123"] == {
            "title": "Foo",
            "timestamp": "2023-01-01T12:00:00",
            "description": "An optional description",
        }
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 6.7K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_debugging/test_tutorial001.py

        with unittest.mock.patch("uvicorn.run") as uvicorn_run_mock:
            runpy.run_module(MOD_NAME, run_name="__main__")
    
        uvicorn_run_mock.assert_called_once_with(
            unittest.mock.ANY, host="0.0.0.0", port=8000
        )
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200
        assert response.json() == {
            "openapi": "3.1.0",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_dependencies/test_tutorial001_tutorial001_02.py

            ("/items?q=foo", 200, {"q": "foo", "skip": 0, "limit": 100}),
            ("/items?q=foo&skip=5", 200, {"q": "foo", "skip": 5, "limit": 100}),
            ("/items?q=foo&skip=5&limit=30", 200, {"q": "foo", "skip": 5, "limit": 30}),
            ("/users", 200, {"q": None, "skip": 0, "limit": 100}),
        ],
    )
    def test_get(path, expected_status, expected_response, client: TestClient):
        response = client.get(path)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. docs/en/docs/release-notes.md

    ### Internal
    
    * 🔧 Update top banner, point to newsletter. PR [#3003](https://github.com/tiangolo/fastapi/pull/3003) by [@tiangolo](https://github.com/tiangolo).
    * 🔧 Disable sponsor WeTransfer. PR [#3002](https://github.com/tiangolo/fastapi/pull/3002) by [@tiangolo](https://github.com/tiangolo).
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 19:06:15 UTC 2025
    - 586.7K bytes
    - Viewed (0)
Back to top