Home / Function/ test_multi_query_incorrect() — fastapi Function Reference

test_multi_query_incorrect() — fastapi Function Reference

Architecture documentation for the test_multi_query_incorrect() function in test_multi_query_errors.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b9911906_1cbd_b8f4_0308_41561801c32d["test_multi_query_incorrect()"]
  2736d454_5034_9b17_1eb8_a3a0fe5b4f9f["test_multi_query_errors.py"]
  b9911906_1cbd_b8f4_0308_41561801c32d -->|defined in| 2736d454_5034_9b17_1eb8_a3a0fe5b4f9f
  style b9911906_1cbd_b8f4_0308_41561801c32d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_multi_query_errors.py lines 22–40

def test_multi_query_incorrect():
    response = client.get("/items/?q=five&q=six")
    assert response.status_code == 422, response.text
    assert response.json() == {
        "detail": [
            {
                "type": "int_parsing",
                "loc": ["query", "q", 0],
                "msg": "Input should be a valid integer, unable to parse string as an integer",
                "input": "five",
            },
            {
                "type": "int_parsing",
                "loc": ["query", "q", 1],
                "msg": "Input should be a valid integer, unable to parse string as an integer",
                "input": "six",
            },
        ]
    }

Domain

Subdomains

Frequently Asked Questions

What does test_multi_query_incorrect() do?
test_multi_query_incorrect() is a function in the fastapi codebase, defined in tests/test_multi_query_errors.py.
Where is test_multi_query_incorrect() defined?
test_multi_query_incorrect() is defined in tests/test_multi_query_errors.py at line 22.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free