]> git.openstreetmap.org Git - nominatim.git/commit
adapt unit test for new word table
authorSarah Hoffmann <lonvia@denofr.de>
Thu, 22 Jul 2021 15:24:43 +0000 (17:24 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Wed, 28 Jul 2021 09:31:47 +0000 (11:31 +0200)
commite42878eeda111457018684a3f60417c0ed6c5294
tree3a421c7ee1ec012c0259861c97bb52c54a13ca64
parenteb6814d74e509fb49986989bb4c60539a2871d76
adapt unit test for new word table

Requires a second wrapper class for the word table with the new
layout. This class is interface-compatible, so that later when
the ICU tokenizer becomes the default, all tests that depend on
behaviour of the default tokenizer can be switched to the other
wrapper.
lib-sql/tokenizer/icu_tokenizer_tables.sql
lib-sql/tokenizer/legacy_icu_tokenizer.sql
nominatim/tokenizer/legacy_icu_tokenizer.py
test/python/mock_icu_word_table.py [new file with mode: 0644]
test/python/mock_legacy_word_table.py [new file with mode: 0644]
test/python/mocks.py
test/python/test_tokenizer_legacy_icu.py