Home / Function/ test_put_correct_body() — fastapi Function Reference

test_put_correct_body() — fastapi Function Reference

Architecture documentation for the test_put_correct_body() function in test_multi_body_errors.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  4ddbe903_e153_9572_f7bf_f974fd1debc9["test_put_correct_body()"]
  789994cf_4c09_9ccd_b82e_26362f9d8f29["test_multi_body_errors.py"]
  4ddbe903_e153_9572_f7bf_f974fd1debc9 -->|defined in| 789994cf_4c09_9ccd_b82e_26362f9d8f29
  style 4ddbe903_e153_9572_f7bf_f974fd1debc9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_multi_body_errors.py lines 25–37

def test_put_correct_body():
    response = client.post("/items/", json=[{"name": "Foo", "age": 5}])
    assert response.status_code == 200, response.text
    assert response.json() == snapshot(
        {
            "item": [
                {
                    "name": "Foo",
                    "age": "5",
                }
            ]
        }
    )

Domain

Subdomains

Frequently Asked Questions

What does test_put_correct_body() do?
test_put_correct_body() is a function in the fastapi codebase, defined in tests/test_multi_body_errors.py.
Where is test_put_correct_body() defined?
test_put_correct_body() is defined in tests/test_multi_body_errors.py at line 25.

Analyze Your Own Codebase

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

Try Supermodel Free