X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/f93d0fa95745c9f1e5b1126e8dd4b09a9daa32d2..28c98584c1f8bed4aa2c2fc22956f7a0f5fc8f3b:/test/python/test_tools_refresh.py diff --git a/test/python/test_tools_refresh.py b/test/python/test_tools_refresh.py index f8428476..ac79a48f 100644 --- a/test/python/test_tools_refresh.py +++ b/test/python/test_tools_refresh.py @@ -8,7 +8,7 @@ import pytest from nominatim.tools import refresh def test_refresh_import_wikipedia_not_existing(dsn): - assert 1 == refresh.import_wikipedia_articles(dsn, Path('.')) + assert refresh.import_wikipedia_articles(dsn, Path('.')) == 1 @pytest.mark.parametrize("replace", (True, False)) @@ -18,7 +18,7 @@ def test_refresh_import_wikipedia(dsn, src_dir, table_factory, temp_db_cursor, r table_factory('wikipedia_redirect') # use the small wikipedia file for the API testdb - assert 0 == refresh.import_wikipedia_articles(dsn, src_dir / 'test' / 'testdb') + assert refresh.import_wikipedia_articles(dsn, src_dir / 'test' / 'testdb') == 0 assert temp_db_cursor.table_rows('wikipedia_article') > 0 assert temp_db_cursor.table_rows('wikipedia_redirect') > 0