Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_response_model_no_annotation_return_invalid_dict (0.4 sec)

  1. tests/test_response_model_as_return_annotation.py

        assert response.status_code == 200, response.text
        assert response.json() == {"name": "John", "surname": "Doe"}
    
    
    def test_response_model_no_annotation_return_invalid_dict():
        with pytest.raises(ResponseValidationError) as excinfo:
            client.get("/response_model-no_annotation-return_invalid_dict")
        assert "missing" in str(excinfo.value)
    
    
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Aug 14 09:49:57 GMT 2023
    - 47.7K bytes
    - Viewed (0)
Back to top