X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2cdbcac353805767df011edc494f8067f9409f63..201b4689afaee3acfddd1fc7fe829fafc70667d6:/test/python/cli/test_cmd_replication.py diff --git a/test/python/cli/test_cmd_replication.py b/test/python/cli/test_cmd_replication.py index 920bd67a..a22d077a 100644 --- a/test/python/cli/test_cmd_replication.py +++ b/test/python/cli/test_cmd_replication.py @@ -1,3 +1,9 @@ +# SPDX-License-Identifier: GPL-2.0-only +# +# This file is part of Nominatim. (https://nominatim.org) +# +# Copyright (C) 2022 by the Nominatim developer community. +# For a full list of authors see the git log. """ Tests for replication command of command-line interface wrapper. """ @@ -9,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 @@ -101,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):