🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2022-07-18 20:34:37 +00:00
parent bf74d31322
commit 901639098b
1 changed files with 4 additions and 0 deletions

View File

@ -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"}