summary refs log tree commit diff stats
path: root/doc/pydoc/test.tc_keyapi.html
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-04-12 12:25:23 +0200
committerhut <hut@lavabit.com>2010-04-12 12:25:23 +0200
commit3cc9e8aa5592d370a0d355584a3716765531a439 (patch)
treecf772515d0c97b058f5613a5aee69ce4f3111cef /doc/pydoc/test.tc_keyapi.html
parent00b627921c0a493e064501f444fa69e147bbb59d (diff)
parent1019737b2570cebd09a2cdff29642085aa6d062e (diff)
downloadranger-3cc9e8aa5592d370a0d355584a3716765531a439.tar.gz
Merge branch 'master' into newkey
Conflicts:
	ranger/defaults/keys.py
	ranger/gui/widgets/console.py
Diffstat (limited to 'doc/pydoc/test.tc_keyapi.html')
0 files changed, 0 insertions, 0 deletions
id='n10' href='#n10'>10 11
12
13
14
15
16
17
18
19
20
21
                 



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/usr/bin/python
"""Run all the tests inside the test/ directory as a test suite."""
if __name__ == '__main__':
	import unittest
	from test import *
	from sys import exit, argv

	try:
		verbosity = int(argv[1])
	except IndexError:
		verbosity = 2

	tests = []
	for key, val in vars().copy().items():
		if key.startswith('tc_'):
			tests.extend(v for k,v in vars(val).items() if type(v) == type)

	suite = unittest.TestSuite(map(unittest.makeSuite, tests))
	result = unittest.TextTestRunner(verbosity=verbosity).run(suite)
	if len(result.errors) + len(result.failures) > 0:
		exit(1)