Files
congress/test/run
Akash Patel c10772e3f3 make congress into a python package (#267)
change directory structure to make python package conventional
add setup.py file to specify deps

guide users to use the installed `usc-run` command
associated changes to other scripts
make scripts installable when package is installed

add a symlink for congress/run.py to run for backwards compat

remove redundant requirements file
2022-02-27 20:13:50 -05:00

15 lines
372 B
Python
Executable File

#!/usr/bin/env python
import sys
import unittest
sys.path.append("congress/tasks") # allow test classes to easily load tasks
sys.path.append("test") # allow fixtures.py to be loaded
tests = unittest.TestLoader().discover("test")
results = unittest.TextTestRunner().run(tests)
if (len(results.failures) > 0) or (len(results.errors) > 0):
exit(1)
else:
exit(0)