Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_post_invalid (0.08 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)
  2. tests/test_modules_same_name_body/test_main.py

        assert response.status_code == 200, response.text
        assert data == response.json()
    
    
    @pytest.mark.parametrize(
        "path", ["/a/compute", "/a/compute/", "/b/compute", "/b/compute/"]
    )
    def test_post_invalid(path):
        data = {"a": "bar", "b": "foo"}
        response = client.post(path, json=data)
        assert response.status_code == 422, response.text
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Thu Feb 27 14:42:41 UTC 2025
    - 5.5K bytes
    - Viewed (0)
Back to top