Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for test_query_params_str_validations_q_empty_str (0.12 sec)

  1. tests/test_tutorial/test_query_params_str_validations/test_tutorial002.py

        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
    
    
    def test_query_params_str_validations_q_empty_str(client: TestClient):
        response = client.get("/items/", params={"q": ""})
        assert response.status_code == 200
        assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_query_params_str_validations/test_tutorial001.py

        response = client.get("/items/")
        assert response.status_code == 200
        assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
    
    
    def test_query_params_str_validations_q_empty_str(client: TestClient):
        response = client.get("/items/", params={"q": ""})
        assert response.status_code == 200
        assert response.json() == {"items": [{"item_id": "Foo"}, {"item_id": "Bar"}]}
    
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  3. tests/test_tutorial/test_query_params_str_validations/test_tutorial006c.py

            "items": [{"item_id": "Foo"}, {"item_id": "Bar"}],
        }
    
    
    @pytest.mark.xfail(
        reason="Code example is not valid. See https://github.com/fastapi/fastapi/issues/12419"
    )
    def test_query_params_str_validations_empty_str(client: TestClient):
        response = client.get("/items/?q=")
        assert response.status_code == 200
        assert response.json() == {  # pragma: no cover
            "items": [{"item_id": "Foo"}, {"item_id": "Bar"}],
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 5K bytes
    - Viewed (0)
Back to top