Browse Source

more updates

pull/9700/head
svlandeg 7 months ago
parent
commit
f9c5d1a93e
  1. 2
      docs_src/custom_docs_ui/tutorial001.py
  2. 2
      tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

2
docs_src/custom_docs_ui/tutorial001.py

@ -29,7 +29,7 @@ async def redoc_html():
return get_redoc_html(
openapi_url=app.openapi_url,
title=app.title + " - ReDoc",
redoc_js_url="https://unpkg.com/redoc@next/bundles/redoc.standalone.js",
redoc_js_url="https://unpkg.com/redoc@2.0.0/bundles/redoc.standalone.js",
)

2
tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py

@ -33,7 +33,7 @@ def test_swagger_ui_oauth2_redirect_html(client: TestClient):
def test_redoc_html(client: TestClient):
response = client.get("/redoc")
assert response.status_code == 200, response.text
assert "https://unpkg.com/redoc@next/bundles/redoc.standalone.js" in response.text
assert "https://unpkg.com/redoc@2.0.0/bundles/redoc.standalone.js" in response.text
def test_api(client: TestClient):

Loading…
Cancel
Save