Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for JSONResponse (0.06 seconds)

  1. tests/test_response_model_as_return_annotation.py

        return Response(content="Foo")
    
    
    @app.get("/no_response_model-annotation_json_response_class")
    def no_response_model_annotation_json_response_class() -> JSONResponse:
        return JSONResponse(content={"foo": "bar"})
    
    
    client = TestClient(app)
    
    
    def test_no_response_model_no_annotation_return_model():
        response = client.get("/no_response_model-no_annotation-return_model")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 50.3K bytes
    - Click Count (0)
Back to Top