]> git.openstreetmap.org Git - nominatim.git/commit
enable BDD tests for different tokenizers
authorSarah Hoffmann <lonvia@denofr.de>
Wed, 5 May 2021 08:00:34 +0000 (10:00 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 5 May 2021 08:31:51 +0000 (10:31 +0200)
commita263e54b9463c89addeb0ac613d0586378de22f2
tree254a9469fa5237e178a31a3bbde5a51122ad7306
parent18c99a5c5f55636175a0b1baa2a8e3d426b0937c
enable BDD tests for different tokenizers

The tokenizer to be used can be choosen with -DTOKENIZER.

Adapt all tests, so that they work with legacy_icu tokenizer.
Move lookup in word table to a function in the tokenizer.
Special phrases are temporarily imported from the wiki until
we have an implementation that can import from file. TIGER
tests do not work yet.
nominatim/tokenizer/legacy_icu_tokenizer.py
nominatim/tokenizer/legacy_tokenizer.py
test/bdd/api/search/queries.feature
test/bdd/db/import/naming.feature
test/bdd/environment.py
test/bdd/steps/nominatim_environment.py
test/bdd/steps/steps_db_ops.py