- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_multi_query_values (0.21 sec)
-
tests/test_tutorial/test_query_params_str_validations/test_tutorial011_an_py39.py
@pytest.fixture(name="client") def get_client(): from docs_src.query_params_str_validations.tutorial011_an_py39 import app client = TestClient(app) return client @needs_py39 def test_multi_query_values(client: TestClient): url = "/items/?q=foo&q=bar" response = client.get(url) assert response.status_code == 200, response.text assert response.json() == {"q": ["foo", "bar"]} @needs_py39
Python - Registered: Sun Apr 28 07:19:10 GMT 2024 - Last Modified: Fri Jul 07 17:12:13 GMT 2023 - 4.1K bytes - Viewed (0)