mirror of
https://github.com/unitedstates/congress.git
synced 2026-03-25 14:00:05 -04:00
15 lines
363 B
Python
Executable File
15 lines
363 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import unittest
|
|
sys.path.append("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)
|