X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0af8dac3d35a94afe0b6ad775f3226d8d147501d..refs/heads/master:/test/python/cli/conftest.py diff --git a/test/python/cli/conftest.py b/test/python/cli/conftest.py index 84f2d659..0c61b29e 100644 --- a/test/python/cli/conftest.py +++ b/test/python/cli/conftest.py @@ -2,12 +2,13 @@ # # 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. import pytest import nominatim_db.cli + class MockParamCapture: """ Mock that records the parameters with which a function was called as well as the number of calls. @@ -68,8 +69,7 @@ def cli_call(): Returns a function that can be called with the desired CLI arguments. """ def _call_nominatim(*args): - return nominatim_db.cli.nominatim(osm2pgsql_path='OSM2PGSQL NOT AVAILABLE', - cli_args=args) + return nominatim_db.cli.nominatim(cli_args=args) return _call_nominatim