Home / Function/ test_incorrect_multipart_installed_file_upload() — fastapi Function Reference

test_incorrect_multipart_installed_file_upload() — fastapi Function Reference

Architecture documentation for the test_incorrect_multipart_installed_file_upload() function in test_multipart_installation.py from the fastapi codebase.

Entity Profile

Dependency Diagram

graph TD
  b273a14b_0ac9_5c71_d418_a8807fd71c46["test_incorrect_multipart_installed_file_upload()"]
  f41885ff_d534_2861_d7f0_2687e517d612["test_multipart_installation.py"]
  b273a14b_0ac9_5c71_d418_a8807fd71c46 -->|defined in| f41885ff_d534_2861_d7f0_2687e517d612
  style b273a14b_0ac9_5c71_d418_a8807fd71c46 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_multipart_installation.py lines 24–34

def test_incorrect_multipart_installed_file_upload(monkeypatch):
    monkeypatch.setattr("python_multipart.__version__", "0.0.12")
    with warnings.catch_warnings(record=True):
        warnings.simplefilter("always")
        monkeypatch.delattr("multipart.multipart.parse_options_header", raising=False)
    with pytest.raises(RuntimeError, match=multipart_incorrect_install_error):
        app = FastAPI()

        @app.post("/")
        async def root(f: UploadFile = File()):
            return f  # pragma: nocover

Domain

Subdomains

Frequently Asked Questions

What does test_incorrect_multipart_installed_file_upload() do?
test_incorrect_multipart_installed_file_upload() is a function in the fastapi codebase, defined in tests/test_multipart_installation.py.
Where is test_incorrect_multipart_installed_file_upload() defined?
test_incorrect_multipart_installed_file_upload() is defined in tests/test_multipart_installation.py at line 24.

Analyze Your Own Codebase

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

Try Supermodel Free