Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_send_all_data (0.08 sec)

  1. tests/test_forms_single_model.py

        alias_with: str = Field(alias="with", default="nothing")
    
    
    @app.post("/form/")
    def post_form(user: Annotated[FormModel, Form()]):
        return user
    
    
    client = TestClient(app)
    
    
    def test_send_all_data():
        response = client.post(
            "/form/",
            data={
                "username": "Rick",
                "lastname": "Sanchez",
                "age": "70",
                "tags": ["plumbus", "citadel"],
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Sep 13 09:51:00 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top