forked from hans/Nominatim
enable flake for Python tests
This commit is contained in:
@@ -10,6 +10,7 @@ Tests for simplified trie structure.
|
||||
|
||||
from nominatim_db.tokenizer.token_analysis.simple_trie import SimpleTrie
|
||||
|
||||
|
||||
def test_single_item_trie():
|
||||
t = SimpleTrie([('foob', 42)])
|
||||
|
||||
@@ -18,6 +19,7 @@ def test_single_item_trie():
|
||||
assert t.longest_prefix('foob') == (42, 4)
|
||||
assert t.longest_prefix('123foofoo', 3) == (None, 3)
|
||||
|
||||
|
||||
def test_complex_item_tree():
|
||||
t = SimpleTrie([('a', 1),
|
||||
('b', 2),
|
||||
|
||||
Reference in New Issue
Block a user