X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c85b74497b385a633ed3f487c77cc0736d5f7328..c41f2fed2133668dc3179813261d39d3ff69cbdd:/test/python/tools/test_freeze.py?ds=inline diff --git a/test/python/tools/test_freeze.py b/test/python/tools/test_freeze.py index 6e852550..0d44501a 100644 --- a/test/python/tools/test_freeze.py +++ b/test/python/tools/test_freeze.py @@ -21,7 +21,6 @@ NOMINATIM_DROP_TABLES = [ 'address_levels', 'location_area', 'location_area_country', 'location_area_large_100', 'location_road_1', - 'osmviews' 'place', 'planet_osm_nodes', 'planet_osm_rels', 'planet_osm_ways', 'search_name_111', 'wikipedia_article', 'wikipedia_redirect' @@ -31,6 +30,8 @@ def test_drop_tables(temp_db_conn, temp_db_cursor, table_factory): for table in NOMINATIM_RUNTIME_TABLES + NOMINATIM_DROP_TABLES: table_factory(table) + assert not freeze.is_frozen(temp_db_conn) + freeze.drop_update_tables(temp_db_conn) for table in NOMINATIM_RUNTIME_TABLES: @@ -39,6 +40,8 @@ def test_drop_tables(temp_db_conn, temp_db_cursor, table_factory): for table in NOMINATIM_DROP_TABLES: assert not temp_db_cursor.table_exists(table) + assert freeze.is_frozen(temp_db_conn) + def test_drop_flatnode_file_no_file(): freeze.drop_flatnode_file(None) @@ -47,7 +50,7 @@ def test_drop_flatnode_file_file_already_gone(tmp_path): freeze.drop_flatnode_file(tmp_path / 'something.store') -def test_drop_flatnode_file_delte(tmp_path): +def test_drop_flatnode_file_delete(tmp_path): flatfile = tmp_path / 'flatnode.store' flatfile.write_text('Some content')