We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e6c5460 commit 6b4cf4bCopy full SHA for 6b4cf4b
2 files changed
project/app/api/ping.py
@@ -11,7 +11,7 @@
11
@router.get("/ping")
12
async def pong(settings: Settings = Depends(get_settings)):
13
return {
14
- "ping": "pong",
+ "ping": "pong!",
15
"environment": settings.environment,
16
"testing": settings.testing,
17
}
project/tests/test_ping.py
@@ -4,4 +4,4 @@
4
def test_ping(test_app):
5
response = test_app.get("/ping")
6
assert response.status_code == 200
7
- assert response.json() == {"environment": "dev", "ping": "pong", "testing": True}
+ assert response.json() == {"environment": "dev", "ping": "pong!", "testing": True}
0 commit comments