X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5e477e3b5b99da6fc4e54749d4671a6fc8fdcd66..5b02cd22b9d9bdf9d3cd32d9e4cfcb971a92c606:/test/python/cli/test_cmd_replication.py?ds=sidebyside diff --git a/test/python/cli/test_cmd_replication.py b/test/python/cli/test_cmd_replication.py index 9fd4f5b3..a22d077a 100644 --- a/test/python/cli/test_cmd_replication.py +++ b/test/python/cli/test_cmd_replication.py @@ -15,6 +15,7 @@ import pytest import nominatim.cli import nominatim.indexer.indexer import nominatim.tools.replication +import nominatim.tools.refresh from nominatim.db import status @pytest.fixture @@ -107,7 +108,7 @@ class TestCliReplication: def test_replication_update_once_no_index(self, update_mock): assert self.call_nominatim('--once', '--no-index') == 0 - assert str(update_mock.last_args[1]['osm2pgsql']) == 'OSM2PGSQL NOT AVAILABLE' + assert str(update_mock.last_args[1]['osm2pgsql']).endswith('OSM2PGSQL NOT AVAILABLE') def test_replication_update_custom_osm2pgsql(self, monkeypatch, update_mock):