Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pyyaml (0.13 sec)

  1. tests/test_tutorial/test_path_operation_advanced_configurations/test_tutorial007.py

        }
    
    
    @needs_pydanticv2
    def test_post_broken_yaml(client: TestClient):
        yaml_data = """
            name: Deadpoolio
            tags:
            x - x-force
            x - x-men
            x - x-avengers
            """
        response = client.post("/items/", content=yaml_data)
        assert response.status_code == 422, response.text
        assert response.json() == {"detail": "Invalid YAML"}
    
    
    @needs_pydanticv2
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top