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