Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for _make_ujson_app (0.05 seconds)

  1. tests/test_deprecated_responses.py

    def test_orjson_response_emits_deprecation_warning():
        with pytest.warns(FastAPIDeprecationWarning, match="ORJSONResponse is deprecated"):
            ORJSONResponse(content={"hello": "world"})
    
    
    # UJSON
    
    
    def _make_ujson_app() -> FastAPI:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", FastAPIDeprecationWarning)
            app = FastAPI(default_response_class=UJSONResponse)
    
        @app.get("/items")
    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