Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for _make_orjson_app (0.99 seconds)

  1. tests/test_deprecated_responses.py

    from fastapi.testclient import TestClient
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        name: str
        price: float
    
    
    # ORJSON
    
    
    def _make_orjson_app() -> FastAPI:
        with warnings.catch_warnings():
            warnings.simplefilter("ignore", FastAPIDeprecationWarning)
            app = FastAPI(default_response_class=ORJSONResponse)
    
        @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