From f4b2ff41bc7f7b2a81ba68bf0db001b8d94b96fb Mon Sep 17 00:00:00 2001 From: Joakim Nordling Date: Mon, 24 Feb 2025 14:44:08 +0200 Subject: [PATCH] Update tests --- tests/test_application.py | 2 +- tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_application.py b/tests/test_application.py index 03bebed4e..aa5369f94 100644 --- a/tests/test_application.py +++ b/tests/test_application.py @@ -43,7 +43,7 @@ def test_redoc(): response = client.get("/redoc") assert response.status_code == 200, response.text assert response.headers["content-type"] == "text/html; charset=utf-8" - assert "redoc@2.0.0" in response.text + assert "redoc@2.4.0" in response.text def test_enum_status_code_response(): diff --git a/tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py b/tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py index 64e1dbcb6..780d6e7a2 100644 --- a/tests/test_tutorial/test_custom_docs_ui/test_tutorial001.py +++ b/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@2.0.0/bundles/redoc.standalone.js" in response.text + assert "https://unpkg.com/redoc@2.4.0/bundles/redoc.standalone.js" in response.text def test_api(client: TestClient):