X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..c2aa7a9b439740c2ac6b5f1d532c2375a113e921:/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 2b211611..9341b527 100644 --- a/test/python/api/test_api_status.py +++ b/test/python/api/test_api_status.py @@ -7,7 +7,6 @@ """ Tests for the status API call. """ -from pathlib import Path import datetime as dt import pytest @@ -39,14 +38,14 @@ def test_status_full(apiobj, frontend): assert result.status == 0 assert result.message == 'OK' assert result.software_version == NOMINATIM_API_VERSION - assert result.database_version == NominatimVersion(99, 5, 4, 2) + assert result.database_version == '99.5.4-2' assert result.data_updated == import_date def test_status_database_not_found(monkeypatch): monkeypatch.setenv('NOMINATIM_DATABASE_DSN', 'dbname=rgjdfkgjedkrgdfkngdfkg') - api = napi.NominatimAPI(Path('/invalid'), {}) + api = napi.NominatimAPI() result = api.status()