X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4315debff588a5aa67840eda07bcc85d265f923b..efc09a5cfcfa85663db7d2a4deb86808a0a72de6:/test/python/api/search/test_api_search_query.py diff --git a/test/python/api/search/test_api_search_query.py b/test/python/api/search/test_api_search_query.py index bfdceb41..71caf5b7 100644 --- a/test/python/api/search/test_api_search_query.py +++ b/test/python/api/search/test_api_search_query.py @@ -2,14 +2,14 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2023 by the Nominatim developer community. +# Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for tokenized query data structures. """ import pytest -from nominatim.api.search import query +from nominatim_api.search import query class MyToken(query.Token): @@ -19,7 +19,7 @@ class MyToken(query.Token): def mktoken(tid: int): return MyToken(penalty=3.0, token=tid, count=1, addr_count=1, - lookup_word='foo', is_indexed=True) + lookup_word='foo') @pytest.mark.parametrize('ptype,ttype', [('NONE', 'WORD'),