pre-commit-ci-lite[bot]
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
4 additions and
3 deletions
-
tests/test_openapi_custom_response_class_no_status_code.py
|
|
|
@ -1,8 +1,7 @@ |
|
|
|
from starlette.responses import Response |
|
|
|
|
|
|
|
from fastapi import FastAPI |
|
|
|
from fastapi.testclient import TestClient |
|
|
|
from inline_snapshot import snapshot |
|
|
|
from starlette.responses import Response |
|
|
|
|
|
|
|
|
|
|
|
class CustomResponse(Response): |
|
|
|
@ -51,7 +50,9 @@ def test_openapi_schema(): |
|
|
|
"responses": { |
|
|
|
"200": { |
|
|
|
"description": "Successful Response", |
|
|
|
"content": {"text/plain": {"schema": {"type": "string"}}}, |
|
|
|
"content": { |
|
|
|
"text/plain": {"schema": {"type": "string"}} |
|
|
|
}, |
|
|
|
} |
|
|
|
}, |
|
|
|
} |
|
|
|
|