# SPDX-License-Identifier: GPL-2.0-only # # This file is part of Nominatim. (https://nominatim.org) # # Copyright (C) 2022 by the Nominatim developer community. # For a full list of authors see the git log. """ Tests for tools.exec_utils module. """ from pathlib import Path import subprocess import pytest from nominatim.config import Configuration import nominatim.tools.exec_utils as exec_utils import nominatim.paths class TestRunApiScript: @staticmethod @pytest.fixture(autouse=True) def setup_project_dir(tmp_path): webdir = tmp_path / 'website' webdir.mkdir() (webdir / 'test.php').write_text("