""" Tests for setting up the website scripts. """ import subprocess import pytest from nominatim.tools import refresh @pytest.fixture def test_script(tmp_path): (tmp_path / 'php').mkdir() website_dir = (tmp_path / 'php' / 'website') website_dir.mkdir() def _create_file(code): outfile = website_dir / 'reverse-only-search.php' outfile.write_text('