X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2bab0ca060ff224091b20a0ac808a3febaba04b1..7f11de0db9ecbb2a8f7551815285d7553747a96e:/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..29eb34d0 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(environ={}) result = api.status()