Home / Function/ test_optional_bytes_list() — fastapi Function Reference

test_optional_bytes_list() — fastapi Function Reference

Architecture documentation for the test_optional_bytes_list() function in test_optional_file_list.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  9a2b7479_359b_2fb6_d3a5_f0db3a3d07d3["test_optional_bytes_list()"]
  998e3361_bab0_1ff4_d2f5_c48920fc4a0f["test_optional_file_list.py"]
  9a2b7479_359b_2fb6_d3a5_f0db3a3d07d3 -->|defined in| 998e3361_bab0_1ff4_d2f5_c48920fc4a0f
  style 9a2b7479_359b_2fb6_d3a5_f0db3a3d07d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_optional_file_list.py lines 16–23

def test_optional_bytes_list():
    client = TestClient(app)
    response = client.post(
        "/files",
        files=[("files", b"content1"), ("files", b"content2")],
    )
    assert response.status_code == 200
    assert response.json() == {"files_count": 2, "sizes": [8, 8]}

Domain

Subdomains

Frequently Asked Questions

What does test_optional_bytes_list() do?
test_optional_bytes_list() is a function in the fastapi codebase, defined in tests/test_optional_file_list.py.
Where is test_optional_bytes_list() defined?
test_optional_bytes_list() is defined in tests/test_optional_file_list.py at line 16.

Analyze Your Own Codebase

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

Try Supermodel Free