From af82c3debbbd1d0819e6858e747880390fd57c3c Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 26 Jun 2025 22:35:38 +0200 Subject: [PATCH] remove duplicated test There is a more extensive test of recompute_importance with result check in test_refresh_wiki_data.py --- test/python/tools/test_refresh.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/python/tools/test_refresh.py b/test/python/tools/test_refresh.py index 95feef0d..91903e29 100644 --- a/test/python/tools/test_refresh.py +++ b/test/python/tools/test_refresh.py @@ -41,18 +41,6 @@ def test_refresh_import_wikipedia(dsn, src_dir, table_factory, temp_db_cursor, r assert temp_db_cursor.table_rows('wikimedia_importance') > 0 -def test_recompute_importance(placex_table, table_factory, temp_db_conn, temp_db_cursor): - temp_db_cursor.execute("""CREATE OR REPLACE FUNCTION compute_importance(extratags HSTORE, - country_code varchar(2), - rank_search SMALLINT, - centroid GEOMETRY, - OUT importance FLOAT, - OUT wikipedia TEXT) - AS $$ SELECT 0.1::float, 'foo'::text $$ LANGUAGE SQL""") - - refresh.recompute_importance(temp_db_conn) - - @pytest.mark.parametrize('osm_type', ('N', 'W', 'R')) def test_invalidate_osm_object_simple(placex_table, osm_type, temp_db_conn, temp_db_cursor): placex_table.add(osm_type=osm_type, osm_id=57283) -- 2.39.5