Home / Function/ test_query_nonregexquery() — fastapi Function Reference

test_query_nonregexquery() — fastapi Function Reference

Architecture documentation for the test_query_nonregexquery() function in test_regex_deprecated_body.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  dc8081cc_7458_c36c_1803_4793c6e8e3c1["test_query_nonregexquery()"]
  8f2fab8a_e459_dbe9_dda2_fbbd4b149368["test_regex_deprecated_body.py"]
  dc8081cc_7458_c36c_1803_4793c6e8e3c1 -->|defined in| 8f2fab8a_e459_dbe9_dda2_fbbd4b149368
  ba6f8534_f1b5_5f03_50e5_0a510c4dc9b3["get_client()"]
  dc8081cc_7458_c36c_1803_4793c6e8e3c1 -->|calls| ba6f8534_f1b5_5f03_50e5_0a510c4dc9b3
  style dc8081cc_7458_c36c_1803_4793c6e8e3c1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_regex_deprecated_body.py lines 46–60

def test_query_nonregexquery():
    client = get_client()
    response = client.post("/items/", data={"q": "nonregexquery"})
    assert response.status_code == 422
    assert response.json() == {
        "detail": [
            {
                "type": "string_pattern_mismatch",
                "loc": ["body", "q"],
                "msg": "String should match pattern '^fixedquery$'",
                "input": "nonregexquery",
                "ctx": {"pattern": "^fixedquery$"},
            }
        ]
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does test_query_nonregexquery() do?
test_query_nonregexquery() is a function in the fastapi codebase, defined in tests/test_regex_deprecated_body.py.
Where is test_query_nonregexquery() defined?
test_query_nonregexquery() is defined in tests/test_regex_deprecated_body.py at line 46.
What does test_query_nonregexquery() call?
test_query_nonregexquery() calls 1 function(s): get_client.

Analyze Your Own Codebase

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

Try Supermodel Free