- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_post_user_form (0.06 sec)
-
tests/test_union_forms.py
industry: str @app.post("/form-union/") def post_union_form(data: Annotated[Union[UserForm, CompanyForm], Form()]): return {"received": data} client = TestClient(app) def test_post_user_form(): response = client.post( "/form-union/", data={"name": "John Doe", "email": "******@****.***"} ) assert response.status_code == 200, response.text assert response.json() == {
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 21:25:59 UTC 2025 - 5.2K bytes - Viewed (0)