public
Description: Simple to use TVDB (thetvdb.com) API in Python, and automatic TV episode namer
Homepage: http://dbr.lighthouseapp.com/projects/13342-tvdb_api/tickets
Clone URL: git://github.com/dbr/tvdb_api.git
Search Repo:
Implimented -t (unittest) flag, now no-longer have to uncomment 
unittest.main() to run tests
dbr (author)
Thu May 15 20:19:19 -0700 2008
commit  b0d7364e9cd2a467ef7fd88d5b5008317ab2c301
tree    47139c08c528c7e592a90c1d6ad2663ba8de391c
parent  91d52026b3e3dde52ca38288253d6ee59080ea33
...
166
167
168
 
 
 
 
 
 
169
170
171
...
300
301
302
303
304
 
305
306
307
308
...
166
167
168
169
170
171
172
173
174
175
176
177
...
306
307
308
 
 
309
310
311
 
312
0
@@ -166,6 +166,12 @@ def main():
0
     
0
     opts,args = parser.parse_args()
0
 
0
+ if opts.dotests:
0
+ suite = unittest.TestLoader().loadTestsFromTestCase(test_tvnamer)
0
+ unittest.TextTestRunner(verbosity=2).run(suite)
0
+ sys.exit(0)
0
+ #end if dotests
0
+
0
     if len(args) == 0:
0
         parser.error("No filenames or directories supplied")
0
     #end if len(args)
0
@@ -300,9 +306,7 @@ class test_tvnamer(unittest.TestCase):
0
         self.assertEquals(t['24']['showname'], '24')
0
         self.assertRaises(tvdb_api.tvdb_shownotfound,t['the fake show thingy'])
0
     #end test_tvdb
0
-
0
-#end test_nameregexes
0
+#end test_tvnamer
0
 
0
 if __name__ == "__main__":
0
- unittest.main()
0
     main()

Comments

    No one has commented yet.