Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_no_multipart_installed_file (1.6 sec)

  1. tests/test_multipart_installation.py

            app = FastAPI()
    
            @app.post("/")
            async def root(username: str = Form()):
                return username  # pragma: nocover
    
    
    def test_no_multipart_installed_file(monkeypatch):
        monkeypatch.delattr("multipart.__version__", raising=False)
        with pytest.raises(RuntimeError, match=multipart_not_installed_error):
            app = FastAPI()
    
            @app.post("/")
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 3.7K bytes
    - Viewed (0)
Back to top