"""
Tests for the status API call.
"""
-from pathlib import Path
import datetime as dt
import pytest
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()