X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/10143e0ac712913d0c33b5df4a4371e7ef849f06..452021ef0c9ac746949a2ef7fd12db4c2d5fee35:/test/python/test_cli_replication.py?ds=inline diff --git a/test/python/test_cli_replication.py b/test/python/test_cli_replication.py index dcaeaf25..2dd35c0e 100644 --- a/test/python/test_cli_replication.py +++ b/test/python/test_cli_replication.py @@ -53,8 +53,7 @@ def init_status(temp_db_conn, status_table): @pytest.fixture def index_mock(monkeypatch, tokenizer_mock, init_status): mock = MockParamCapture() - monkeypatch.setattr(nominatim.indexer.indexer.Indexer, 'index_boundaries', mock) - monkeypatch.setattr(nominatim.indexer.indexer.Indexer, 'index_by_rank', mock) + monkeypatch.setattr(nominatim.indexer.indexer.Indexer, 'index_full', mock) return mock @@ -122,7 +121,7 @@ class TestCliReplication: with pytest.raises(IndexError): self.call_nominatim() - assert index_mock.called == 4 + assert index_mock.called == 2 def test_replication_update_continuous_no_change(self, monkeypatch, index_mock): @@ -137,6 +136,6 @@ class TestCliReplication: with pytest.raises(IndexError): self.call_nominatim() - assert index_mock.called == 2 + assert index_mock.called == 1 assert sleep_mock.called == 1 assert sleep_mock.last_args[0] == 60