X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c4f22a42eba499ed1854c5967b2e3932fe9b3896..e1af6a22d357de51c86ac73582beba2b4419227b:/test/python/tokenizer/test_factory.py diff --git a/test/python/tokenizer/test_factory.py b/test/python/tokenizer/test_factory.py index aa763e28..166e6ba6 100644 --- a/test/python/tokenizer/test_factory.py +++ b/test/python/tokenizer/test_factory.py @@ -63,13 +63,13 @@ class TestFactory: assert tokenizer.init_state == "loaded" - def test_load_no_tokenizer_dir(self): + def test_load_repopulate_tokenizer_dir(self): factory.create_tokenizer(self.config) - self.config.project_dir = self.config.project_dir / 'foo' + self.config.project_dir = self.config.project_dir - with pytest.raises(UsageError): - factory.get_tokenizer_for_db(self.config) + factory.get_tokenizer_for_db(self.config) + assert (self.config.project_dir / 'tokenizer').exists() def test_load_missing_property(self, temp_db_cursor):