From 4979f907328f4370fdf8438fa8cd0969f3ad442e Mon Sep 17 00:00:00 2001 From: Shahar Ilany <31574996+ShaharIlany@users.noreply.github.com> Date: Wed, 24 Aug 2022 21:20:29 +0300 Subject: [PATCH] cr fixes --- tests/test_stoplight_elements_docs.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_stoplight_elements_docs.py b/tests/test_stoplight_elements_docs.py index 092aab04b..5d8c63f3d 100644 --- a/tests/test_stoplight_elements_docs.py +++ b/tests/test_stoplight_elements_docs.py @@ -1,18 +1,18 @@ from fastapi import FastAPI from fastapi.testclient import TestClient -app = FastAPI(title="White Shuli 2") +app = FastAPI(title="Example App") -@app.get("/pita/shuli") +@app.get("/a/b") async def get_shuli_in_a_pita(): - return {"shuli": "pita"} + return {"a": "b"} client = TestClient(app) -def test_swagger_ui(): +def test_elements_uit(): response = client.get("/elements") assert response.status_code == 200, response.text print(response.text) @@ -21,5 +21,5 @@ def test_swagger_ui(): def test_response(): - response = client.get("/pita/shuli") - assert response.json() == {"shuli": "pita"} + response = client.get("/a/b") + assert response.json() == {"a": "b"}