Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_form_default_url_encoded (0.1 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_form_default.py

    async def post_multi_part(
        age: Annotated[int | None, Form()] = None,
        file: Annotated[bytes | None, File()] = None,
    ):
        return {"file": file, "age": age}
    
    
    client = TestClient(app)
    
    
    def test_form_default_url_encoded():
        response = client.post("/urlencoded", data={"age": ""})
        assert response.status_code == 200
        assert response.text == "null"
    
    
    def test_form_default_multi_part():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 829 bytes
    - Click Count (0)
Back to Top