X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5e477e3b5b99da6fc4e54749d4671a6fc8fdcd66..edb1eec46d0fd222f9b30e0e3d62e906c1c9059e:/test/python/tools/test_freeze.py diff --git a/test/python/tools/test_freeze.py b/test/python/tools/test_freeze.py index 3ebb1730..0d44501a 100644 --- a/test/python/tools/test_freeze.py +++ b/test/python/tools/test_freeze.py @@ -30,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: @@ -38,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) @@ -46,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')