We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48b14fe commit 4a1ce1cCopy full SHA for 4a1ce1c
project/app/api/ping.py
@@ -8,7 +8,7 @@
8
@router.get("/ping")
9
async def pong(settings: Settings = Depends(get_settings)):
10
return {
11
- "ping": "pong!",
+ "ping": "pong",
12
"environment": settings.environment,
13
"testing": settings.testing,
14
}
project/tests/test_ping.py
@@ -1,4 +1,4 @@
1
def test_ping(test_app):
2
response = test_app.get("/ping")
3
assert response.status_code == 200
4
- assert response.json() == {"environment": "dev", "ping": "pong!", "testing": True}
+ assert response.json() == {"environment": "dev", "ping": "pong", "testing": True}
0 commit comments