diff --git a/app/status/healthcheck.py b/app/status/healthcheck.py index da305c9e2..b0c451d0f 100644 --- a/app/status/healthcheck.py +++ b/app/status/healthcheck.py @@ -9,6 +9,7 @@ from app import db, version status = Blueprint('status', __name__) +@status.route('/', methods=['GET']) @status.route('/_status', methods=['GET', 'POST']) def show_status(): if request.args.get('simple', None): diff --git a/tests/app/status/test_status.py b/tests/app/status/test_status.py index 4203a4e4d..f96289988 100644 --- a/tests/app/status/test_status.py +++ b/tests/app/status/test_status.py @@ -1,8 +1,9 @@ +import pytest from flask import json -def test_get_status_all_ok(client): - path = '/_status' +@pytest.mark.parametrize('path', ['/', '/_status']) +def test_get_status_all_ok(client, notify_db_session, path): response = client.get(path) assert response.status_code == 200 resp_json = json.loads(response.get_data(as_text=True))