Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for test_double_invalid (0.18 sec)

  1. tests/test_validate_response_dataclass.py

            {"name": "baz", "price": "baz"},
        ]
    
    
    client = TestClient(app)
    
    
    def test_invalid():
        with pytest.raises(ResponseValidationError):
            client.get("/items/invalid")
    
    
    def test_double_invalid():
        with pytest.raises(ResponseValidationError):
            client.get("/items/innerinvalid")
    
    
    def test_invalid_list():
        with pytest.raises(ResponseValidationError):
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_validate_response.py

    
    def test_valid_none_none():
        response = client.get("/items/validnone", params={"send_none": "true"})
        data = response.json()
        assert response.status_code == 200
        assert data is None
    
    
    def test_double_invalid():
        with pytest.raises(ResponseValidationError):
            client.get("/items/innerinvalid")
    
    
    def test_invalid_list():
        with pytest.raises(ResponseValidationError):
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 2K bytes
    - Viewed (0)
Back to top