Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testClient2 (0.1 sec)

  1. tests/test_include_router_defaults_overrides.py

    import warnings
    
    import pytest
    from fastapi import APIRouter, Depends, FastAPI, Response
    from fastapi.responses import JSONResponse
    from fastapi.testclient import TestClient
    
    
    class ResponseLevel0(JSONResponse):
        media_type = "application/x-level-0"
    
    
    class ResponseLevel1(JSONResponse):
        media_type = "application/x-level-1"
    
    
    class ResponseLevel2(JSONResponse):
        media_type = "application/x-level-2"
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 358.6K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    * [Upgraded Starlette](https://github.com/encode/starlette/releases/tag/0.21.0)
        * Now the `TestClient` is based on HTTPX instead of Requests. 🚀
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
Back to top