Home / Function/ test_incorrect_multipart_installed_form() — fastapi Function Reference

test_incorrect_multipart_installed_form() — fastapi Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_multipart_installation.py lines 11–21

def test_incorrect_multipart_installed_form(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(username: str = Form()):
            return username  # pragma: nocover

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free