Spaces:
Sleeping
Sleeping
Download scripts/run_pytest.py from tarekmasryo/rag-qa-command-cente: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/tarekmasryo/rag-qa-command-cente/resolve/main/scripts/run_pytest.py
- Command line
-
hf download hf://spaces/tarekmasryo/rag-qa-command-cente/scripts/run_pytest.py
-
curl -L -o run_pytest.py https://huggingface.co/spaces/tarekmasryo/rag-qa-command-cente/resolve/main/scripts/run_pytest.py
382 Bytes
| """Cross-platform pytest runner used by Makefile and CI.""" | |
| from __future__ import annotations | |
| import os | |
| import subprocess | |
| import sys | |
| def main() -> int: | |
| os.environ.setdefault("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1") | |
| args = sys.argv[1:] or ["-q"] | |
| return subprocess.call([sys.executable, "-m", "pytest", *args]) | |
| if __name__ == "__main__": | |
| raise SystemExit(main()) | |