X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/09b2510219e97203ad17aa2250ea8351dff06b23..109af0ef1c55421a166fd2d45586d04fe7f6f969:/test/python/test_tools_exec_utils.py?ds=inline diff --git a/test/python/test_tools_exec_utils.py b/test/python/test_tools_exec_utils.py index 3abe9818..25ccf163 100644 --- a/test/python/test_tools_exec_utils.py +++ b/test/python/test_tools_exec_utils.py @@ -3,97 +3,94 @@ Tests for tools.exec_utils module. """ from pathlib import Path import subprocess -import tempfile import pytest import nominatim.tools.exec_utils as exec_utils -@pytest.fixture -def nominatim_env(tmp_phplib_dir, def_config): - 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' - - return _NominatimEnv - -@pytest.fixture -def test_script(nominatim_env): - def _create_file(code): - with (nominatim_env.phplib_dir / 'admin' / 't.php').open(mode='w') as fd: - fd.write('