switch tests to ICU tokenizer as default

This commit is contained in:
Sarah Hoffmann
2022-05-10 14:54:50 +02:00
parent b93ef23d3f
commit adeebec32a
8 changed files with 13 additions and 12 deletions

View File

@@ -266,7 +266,7 @@ def check_word_table_for_postcodes(context, exclude, postcodes):
plist.sort()
with context.db.cursor(cursor_factory=psycopg2.extras.DictCursor) as cur:
if nctx.tokenizer == 'icu':
if nctx.tokenizer != 'legacy':
cur.execute("SELECT word FROM word WHERE type = 'P' and word = any(%s)",
(plist,))
else: