- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for test_post_invalid (0.09 sec)
-
tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py
""" response = client.post("/items/", content=yaml_data) assert response.status_code == 422, response.text assert response.json() == {"detail": "Invalid YAML"} @needs_pydanticv2 def test_post_invalid(client: TestClient): yaml_data = """ name: Deadpoolio tags: - x-force - x-men - x-avengers - sneaky: object """
Registered: Sun Oct 27 07:19:11 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 3.3K bytes - Viewed (0)