X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/381c9395747a04672acba395e0bd14332d1a9db9..3127d59613c54c58a77784ece4c0e2de02d5a282:/test/python/api/test_api_status.py diff --git a/test/python/api/test_api_status.py b/test/python/api/test_api_status.py index 036a235c..2acde2ec 100644 --- a/test/python/api/test_api_status.py +++ b/test/python/api/test_api_status.py @@ -14,8 +14,9 @@ import pytest from nominatim.version import NOMINATIM_VERSION, NominatimVersion import nominatim.api as napi -def test_status_no_extra_info(apiobj): - result = apiobj.api.status() +def test_status_no_extra_info(apiobj, frontend): + api = frontend(apiobj) + result = api.status() assert result.status == 0 assert result.message == 'OK' @@ -24,14 +25,15 @@ def test_status_no_extra_info(apiobj): assert result.data_updated is None -def test_status_full(apiobj): +def test_status_full(apiobj, frontend): import_date = dt.datetime(2022, 12, 7, 14, 14, 46, 0, tzinfo=dt.timezone.utc) apiobj.add_data('import_status', [{'lastimportdate': import_date}]) apiobj.add_data('properties', [{'property': 'database_version', 'value': '99.5.4-2'}]) - result = apiobj.api.status() + api = frontend(apiobj) + result = api.status() assert result.status == 0 assert result.message == 'OK'