From 901639098b8e4176e194f173990ab97c45e905b4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 18 Jul 2022 20:34:37 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20[pre-commit.ci]=20Auto=20format?= =?UTF-8?q?=20from=20pre-commit.com=20hooks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_stoplight_elements_docs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_stoplight_elements_docs.py b/tests/test_stoplight_elements_docs.py index 7348d2836..092aab04b 100644 --- a/tests/test_stoplight_elements_docs.py +++ b/tests/test_stoplight_elements_docs.py @@ -3,12 +3,15 @@ from fastapi.testclient import TestClient app = FastAPI(title="White Shuli 2") + @app.get("/pita/shuli") async def get_shuli_in_a_pita(): return {"shuli": "pita"} + client = TestClient(app) + def test_swagger_ui(): response = client.get("/elements") assert response.status_code == 200, response.text @@ -16,6 +19,7 @@ def test_swagger_ui(): assert app.title in response.text assert "Stoplight" in response.text + def test_response(): response = client.get("/pita/shuli") assert response.json() == {"shuli": "pita"}