X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e14e7c6235a40dbec451146bcb3aaec013d659c9..c06a1d007a4e67ab5caf5bf63d351f83e4e54ab6:/test/python/test_tools_refresh.py diff --git a/test/python/test_tools_refresh.py b/test/python/test_tools_refresh.py index d6c46ad7..b472ee30 100644 --- a/test/python/test_tools_refresh.py +++ b/test/python/test_tools_refresh.py @@ -22,5 +22,5 @@ def test_refresh_import_wikipedia(dsn, table_factory, temp_db_cursor, replace): # use the small wikipedia file for the API testdb assert 0 == refresh.import_wikipedia_articles(dsn, TEST_DIR / 'testdb') - assert temp_db_cursor.scalar('SELECT count(*) FROM wikipedia_article') > 0 - assert temp_db_cursor.scalar('SELECT count(*) FROM wikipedia_redirect') > 0 + assert temp_db_cursor.table_rows('wikipedia_article') > 0 + assert temp_db_cursor.table_rows('wikipedia_redirect') > 0