Browse Source

Update test_openapi_examples.py

pull/13713/head
Carlos Mario Toro 2 days ago
committed by GitHub
parent
commit
a53fd4f29d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 11
      tests/test_openapi_examples.py

11
tests/test_openapi_examples.py

@ -5,12 +5,7 @@ from fastapi import Body, Cookie, FastAPI, Header, Path, Query
from fastapi.testclient import TestClient
from pydantic import BaseModel
external_docs = {
"description": "External API documentation.",
"url": "https://docs.example.com/api-general",
}
app = FastAPI(openapi_external_docs=external_docs)
app = FastAPI()
class Item(BaseModel):
@ -473,8 +468,4 @@ def test_openapi_schema():
},
}
},
"externalDocs": {
"description": "External API documentation.",
"url": "https://docs.example.com/api-general",
},
}

Loading…
Cancel
Save