mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-03-09 11:34:07 +00:00
bdd: do not expect legacy word table to be without empty tokens
It can happen for bogus names and this will not get fixed anymore.
This commit is contained in:
@@ -27,8 +27,9 @@ def check_database_integrity(context):
|
|||||||
assert cur.fetchone()[0] == 0, "Duplicates found in place_addressline"
|
assert cur.fetchone()[0] == 0, "Duplicates found in place_addressline"
|
||||||
|
|
||||||
# word table must not have empty word_tokens
|
# word table must not have empty word_tokens
|
||||||
cur.execute("SELECT count(*) FROM word WHERE word_token = ''")
|
if context.nominatim.tokenizer != 'legacy':
|
||||||
assert cur.fetchone()[0] == 0, "Empty word tokens found in word table"
|
cur.execute("SELECT count(*) FROM word WHERE word_token = ''")
|
||||||
|
assert cur.fetchone()[0] == 0, "Empty word tokens found in word table"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user