diff --git a/speid/views.py b/speid/views.py index 4bba4dd4..ec8ab171 100644 --- a/speid/views.py +++ b/speid/views.py @@ -15,6 +15,7 @@ @app.route('/') +@app.route('/healthcheck') def health_check(): return "I'm healthy!" diff --git a/test/test_general.py b/test/test_general.py index 9483bd6d..88bd512c 100644 --- a/test/test_general.py +++ b/test/test_general.py @@ -15,6 +15,10 @@ def test_ping(self, app): res = app.get('/') assert res.status_code == 200 + def test_health_check(self, app): + res = app.get('/healthcheck') + assert res.status_code == 200 + @my_vcr.use_cassette('test/cassettes/test_create_order.yaml') def test_save_transaction(self): transaction_request = {