/ranger/container/

ple, vim-like file managerakspecs <akspecs@tilde.institute>
summary refs log tree commit diff stats
path: root/doc/uml/python_imports
blob: 4a1bd3a858dfa09f9dd44bfbab9d54ae1ac0c842 (plain) (blame)
1
665dee71ae984131208'>^
1
2
3
4
5
6
7
8
9
10
11
                 



                                                                   





                                        
 



                                                                                       
 
                                                                  


                                                                        
#!/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)
c' href='/akspecs/ranger/commit/doc/pydoc/ranger.defaults.options.html?h=v1.5.1&id=a614f0485f872bfca3a84fb3400a0c6177988413'>a614f048 ^
1
2
3
4
5
6
7
8
9
10