]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/python/api/search/test_api_search_query.py
add address counts to tokens
[nominatim.git] / test / python / api / search / test_api_search_query.py
index fe850ce902930a817981bd42c6c549fc5bd91ec3..bfdceb4165fc984451e6ca8266a15554cc0cb2b8 100644 (file)
@@ -18,7 +18,8 @@ class MyToken(query.Token):
 
 
 def mktoken(tid: int):
-    return MyToken(3.0, tid, 1, 'foo', True)
+    return MyToken(penalty=3.0, token=tid, count=1, addr_count=1,
+                   lookup_word='foo', is_indexed=True)
 
 
 @pytest.mark.parametrize('ptype,ttype', [('NONE', 'WORD'),