Download scripts/test_setup.py from nmarshall/nanobrush: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/nmarshall/nanobrush/resolve/main/scripts/test_setup.py
- Command line
-
hf download hf://nmarshall/nanobrush/scripts/test_setup.py
-
curl -L -o test_setup.py https://huggingface.co/nmarshall/nanobrush/resolve/main/scripts/test_setup.py
369 Bytes
| #!/usr/bin/env python3 | |
| """Run network-free repository and research regression tests.""" | |
| from pathlib import Path | |
| import sys | |
| import unittest | |
| ROOT = Path(__file__).resolve().parents[1] | |
| sys.path.insert(0, str(ROOT / "scripts")) | |
| suite = unittest.defaultTestLoader.discover(str(ROOT / "tests")) | |
| sys.exit(not unittest.TextTestRunner(verbosity=2).run(suite).wasSuccessful()) | |