Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_ujson_response_emits_deprecation_warning (0.22 seconds)

  1. tests/test_deprecated_responses.py

            response = client.get("/items")
        assert response.status_code == 200
        assert response.json() == {"name": "widget", "price": 9.99}
    
    
    def test_ujson_response_emits_deprecation_warning():
        with pytest.warns(FastAPIDeprecationWarning, match="UJSONResponse is deprecated"):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 22 16:34:59 GMT 2026
    - 2K bytes
    - Click Count (0)
Back to Top