"""
Tests for query analyzer for ICU tokenizer.
"""
-from pathlib import Path
-
import pytest
import pytest_asyncio
table_factory('word',
definition='word_id INT, word_token TEXT, type TEXT, word TEXT, info JSONB')
- api = NominatimAPIAsync(Path('/invalid'), {})
- async with api.begin() as conn:
- yield conn
- await api.close()
+ async with NominatimAPIAsync(environ={}) as api:
+ async with api.begin() as conn:
+ yield conn
@pytest.mark.asyncio