X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/c4f22a42eba499ed1854c5967b2e3932fe9b3896..7b0e0dfd883b268b58a721e2967303fa368e563f:/test/python/tools/test_exec_utils.py?ds=inline diff --git a/test/python/tools/test_exec_utils.py b/test/python/tools/test_exec_utils.py index 78650180..b4439c12 100644 --- a/test/python/tools/test_exec_utils.py +++ b/test/python/tools/test_exec_utils.py @@ -12,119 +12,10 @@ 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, def_config): - tmp_phplib_dir = tmp_path / 'phplib' - tmp_phplib_dir.mkdir() - (tmp_phplib_dir / 'admin').mkdir() - - class _NominatimEnv: - config = def_config - phplib_dir = tmp_phplib_dir - data_dir = Path('data') - project_dir = Path('.') - sqllib_dir = Path('lib-sql') - config_dir = Path('settings') - module_dir = 'module' - osm2pgsql_path = 'osm2pgsql' - - self.testenv = _NominatimEnv - - - def mk_script(self, code): - codefile = self.testenv.phplib_dir / 'admin' / 't.php' - codefile.write_text('