mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-19 07:45:06 -05:00
29 lines
556 B
Python
29 lines
556 B
Python
|
#!/usr/bin/env python2
|
||
|
#encoding:utf-8
|
||
|
#author:dbr/Ben
|
||
|
#project:tvdb_api
|
||
|
#repository:http://github.com/dbr/tvdb_api
|
||
|
#license:unlicense (http://unlicense.org/)
|
||
|
|
||
|
import sys
|
||
|
import unittest
|
||
|
|
||
|
import test_tvdb_api
|
||
|
|
||
|
def main():
|
||
|
suite = unittest.TestSuite([
|
||
|
unittest.TestLoader().loadTestsFromModule(test_tvdb_api)
|
||
|
])
|
||
|
|
||
|
runner = unittest.TextTestRunner(verbosity=2)
|
||
|
result = runner.run(suite)
|
||
|
if result.wasSuccessful():
|
||
|
return 0
|
||
|
else:
|
||
|
return 1
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
sys.exit(
|
||
|
int(main())
|
||
|
)
|