test_no_multipart_installed_form_file() — fastapi Function Reference
Architecture documentation for the test_no_multipart_installed_form_file() function in test_multipart_installation.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD eb9479a2_bc9c_552d_ae5f_58a06d71bbca["test_no_multipart_installed_form_file()"] f41885ff_d534_2861_d7f0_2687e517d612["test_multipart_installation.py"] eb9479a2_bc9c_552d_ae5f_58a06d71bbca -->|defined in| f41885ff_d534_2861_d7f0_2687e517d612 style eb9479a2_bc9c_552d_ae5f_58a06d71bbca fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_multipart_installation.py lines 128–138
def test_no_multipart_installed_form_file(monkeypatch):
monkeypatch.setattr("python_multipart.__version__", "0.0.12")
with warnings.catch_warnings(record=True):
warnings.simplefilter("always")
monkeypatch.delattr("multipart.__version__", raising=False)
with pytest.raises(RuntimeError, match=multipart_not_installed_error):
app = FastAPI()
@app.post("/")
async def root(username: str = Form(), f: UploadFile = File()):
return username # pragma: nocover
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_no_multipart_installed_form_file() do?
test_no_multipart_installed_form_file() is a function in the fastapi codebase, defined in tests/test_multipart_installation.py.
Where is test_no_multipart_installed_form_file() defined?
test_no_multipart_installed_form_file() is defined in tests/test_multipart_installation.py at line 128.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free