Download tests.py from MathysL/AutoGPT4: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/spaces/MathysL/AutoGPT4/resolve/main/tests.py
- Command line
-
hf download hf://spaces/MathysL/AutoGPT4/tests.py
-
curl -L -o tests.py https://huggingface.co/spaces/MathysL/AutoGPT4/resolve/main/tests.py
438 Bytes
| import unittest | |
| import coverage | |
| if __name__ == "__main__": | |
| # Start coverage collection | |
| cov = coverage.Coverage() | |
| cov.start() | |
| # Load all tests from the 'autogpt/tests' package | |
| suite = unittest.defaultTestLoader.discover("./tests") | |
| # Run the tests | |
| unittest.TextTestRunner().run(suite) | |
| # Stop coverage collection | |
| cov.stop() | |
| cov.save() | |
| # Report the coverage | |
| cov.report(show_missing=True) | |