X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/671af4cff24ed671bed414160a73ea3541907d29..c70dfccacac90a90bfc193f49262abe7505d7d75:/test/python/tools/test_add_osm_data.py diff --git a/test/python/tools/test_add_osm_data.py b/test/python/tools/test_add_osm_data.py index c5aaaaae..38cf87c4 100644 --- a/test/python/tools/test_add_osm_data.py +++ b/test/python/tools/test_add_osm_data.py @@ -2,7 +2,7 @@ # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2024 by the Nominatim developer community. +# Copyright (C) 2025 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for functions to add additional data to the database. @@ -13,6 +13,7 @@ import pytest from nominatim_db.tools import add_osm_data + class CaptureGetUrl: def __init__(self, monkeypatch): @@ -29,6 +30,7 @@ def setup_delete_postprocessing(temp_db_cursor): temp_db_cursor.execute("""CREATE OR REPLACE FUNCTION flush_deleted_places() RETURNS INTEGER AS $$ SELECT 1 $$ LANGUAGE SQL""") + def test_import_osm_file_simple(dsn, table_factory, osm2pgsql_options, capfd): assert add_osm_data.add_data_from_file(dsn, Path('change.osm'), osm2pgsql_options) == 0