Tests - minor refactor

This commit is contained in:
Sam
2020-12-30 12:09:34 +01:00
parent 806c333bf5
commit 6f627ef6c9
24 changed files with 2 additions and 2 deletions

View File

@ -0,0 +1,12 @@
import json
class TestHealthCheck:
def test_it_returns_pong_on_health_check(self, app):
""" => Ensure the /health_check route behaves correctly."""
client = app.test_client()
response = client.get('/api/ping')
data = json.loads(response.data.decode())
assert response.status_code == 200
assert 'pong' in data['message']
assert 'success' in data['status']