Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_post_invalid (0.07 sec)

  1. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

            x - x-avengers
            """
        response = client.post("/items/", content=yaml_data)
        assert response.status_code == 422, response.text
        assert response.json() == {"detail": "Invalid YAML"}
    
    
    def test_post_invalid(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            - x-force
            - x-men
            - x-avengers
            - sneaky: object
            """
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 3.4K bytes
    - Viewed (0)
Back to top