X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/6cabc44841dbee037c8d15a9a2af4cff71ee4248..c495ce097916063327460cfa2cc6e3fcccac4df2:/test/python/conftest.py diff --git a/test/python/conftest.py b/test/python/conftest.py index 4b7cccc3..871365d9 100644 --- a/test/python/conftest.py +++ b/test/python/conftest.py @@ -5,6 +5,7 @@ from pathlib import Path import psycopg2 import psycopg2.extras import pytest +import tempfile SRC_DIR = Path(__file__) / '..' / '..' / '..' @@ -133,6 +134,13 @@ def def_config(): def src_dir(): return SRC_DIR.resolve() +@pytest.fixture +def tmp_phplib_dir(): + with tempfile.TemporaryDirectory() as phpdir: + (Path(phpdir) / 'admin').mkdir() + + yield Path(phpdir) + @pytest.fixture def status_table(temp_db_conn): """ Create an empty version of the status table and