mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-05 02:43:37 +00: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())
|
||
|
)
|