mirror of
https://github.com/unitedstates/congress.git
synced 2025-12-19 17:16:58 -05:00
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
15 lines
372 B
Python
Executable File
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)
|