Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_cookie_param_model_extra (0.19 sec)

  1. tests/test_tutorial/test_cookie_param_models/test_tutorial001.py

                            "loc": ["cookie", "session_id"],
                            "msg": "field required",
                        }
                    ]
                }
            )
        )
    
    
    def test_cookie_param_model_extra(client: TestClient):
        with client as c:
            c.cookies.set("session_id", "123")
            c.cookies.set("extra", "track-me-here-too")
            response = c.get("/items/")
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_cookie_param_models/test_tutorial002.py

                            "loc": ["cookie", "session_id"],
                            "msg": "field required",
                        }
                    ]
                }
            )
        )
    
    
    def test_cookie_param_model_extra(client: TestClient):
        with client as c:
            c.cookies.set("session_id", "123")
            c.cookies.set("extra", "track-me-here-too")
            response = c.get("/items/")
        assert response.status_code == 422
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Sep 17 18:54:10 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top