from pathlib import Path def test_fnos_dependency_download_uses_fast_configurable_index() -> None: script = (Path(__file__).parents[1] / "scripts" / "prepare-fnos-dependencies.sh").read_text() assert "PIP_INDEX_URL=${PIP_INDEX_URL:-https://pypi.tuna.tsinghua.edu.cn/simple}" in script assert '--index-url "$PIP_INDEX_URL"' in script assert '--timeout "$PIP_TIMEOUT" --retries 4' in script