test_required_list_validation_alias_by_name() — fastapi Function Reference
Architecture documentation for the test_required_list_validation_alias_by_name() function in test_list.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD d21ff1f6_412f_7042_c5f8_dbef8e91bc8e["test_required_list_validation_alias_by_name()"] 143b99d8_41e8_64ef_5f24_aa6a19a5a92f["test_list.py"] d21ff1f6_412f_7042_c5f8_dbef8e91bc8e -->|defined in| 143b99d8_41e8_64ef_5f24_aa6a19a5a92f style d21ff1f6_412f_7042_c5f8_dbef8e91bc8e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_request_params/test_form/test_list.py lines 265–279
def test_required_list_validation_alias_by_name(path: str):
client = TestClient(app)
response = client.post(path, data={"p": ["hello", "world"]})
assert response.status_code == 422, response.text
assert response.json() == {
"detail": [
{
"type": "missing",
"loc": ["body", "p_val_alias"],
"msg": "Field required",
"input": IsOneOf(None, IsPartialDict({"p": ["hello", "world"]})),
}
]
}
Domain
Subdomains
Source
Frequently Asked Questions
What does test_required_list_validation_alias_by_name() do?
test_required_list_validation_alias_by_name() is a function in the fastapi codebase, defined in tests/test_request_params/test_form/test_list.py.
Where is test_required_list_validation_alias_by_name() defined?
test_required_list_validation_alias_by_name() is defined in tests/test_request_params/test_form/test_list.py at line 265.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free