X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/2abe9e6fd99bb270c9de05f19701283a08c3b2f5..330b8d2fdfdd935da123abf9ecf96b3bc7a12be5:/test/python/tools/test_exec_utils.py?ds=sidebyside diff --git a/test/python/tools/test_exec_utils.py b/test/python/tools/test_exec_utils.py index f73aec30..666ef0b8 100644 --- a/test/python/tools/test_exec_utils.py +++ b/test/python/tools/test_exec_utils.py @@ -1,8 +1,8 @@ -# SPDX-License-Identifier: GPL-2.0-only +# SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of Nominatim. (https://nominatim.org) # -# Copyright (C) 2022 by the Nominatim developer community. +# Copyright (C) 2024 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for tools.exec_utils module. @@ -12,124 +12,8 @@ import subprocess import pytest -from nominatim.config import Configuration -import nominatim.tools.exec_utils as exec_utils -import nominatim.paths - -class TestRunLegacyScript: - - @pytest.fixture(autouse=True) - def setup_nominatim_env(self, tmp_path, monkeypatch): - tmp_phplib_dir = tmp_path / 'phplib' - tmp_phplib_dir.mkdir() - (tmp_phplib_dir / 'admin').mkdir() - - monkeypatch.setattr(nominatim.paths, 'PHPLIB_DIR', tmp_phplib_dir) - - self.phplib_dir = tmp_phplib_dir - self.config = Configuration(tmp_path) - self.config.set_libdirs(module='.', osm2pgsql='default_osm2pgsql', - php=tmp_phplib_dir) - - - def mk_script(self, code): - codefile = self.phplib_dir / 'admin' / 't.php' - codefile.write_text('