@needs('pavelib.prereqs.install_prereqs', 'pavelib.utils.test.utils.clean_reports_dir')
@cmdopts([('failed', 'f', 'Run only failed tests'), ('fail-fast', 'x', 'Run only failed tests'), make_option('-c', '--cov-args', default='', help='adds as args to coverage for the test run'), make_option('--verbose', action='store_const', const=2, dest='verbosity'), make_option('-q', '--quiet', action='store_const', const=0, dest='verbosity'), make_option('-v', '--verbosity', action='count', dest='verbosity', default=1), make_option('--disable-migrations', action='store_true', dest='disable_migrations', help="Create tables directly from apps' models. Can also be used by exporting DISABLE_MIGRATIONS=1."), ('cov_args=', None, 'deprecated in favor of cov-args'), make_option('-e', '--extra_args', default='', help='deprecated, pass extra options directly in the paver commandline'), ('fail_fast', None, 'deprecated in favor of fail-fast')])
@PassthroughTask
@timed
def test_python(options, passthrough_options):
 python_suite = suites.PythonTestSuite('Python Tests', passthrough_options=passthrough_options, **options.test_python)
 python_suite.run()

@ needs ( 'pavelib.prereqs.install_prereqs' , 'pavelib.utils.test.utils.clean_reports_dir' ) @ cmdopts ( [ ( 'failed' , 'f' , 'Run only failed tests' ) , ( 'fail-fast' , 'x' , 'Run only failed tests' ) , make_option ( '-c' , '--cov-args' , default = '' , help = 'adds as args to coverage for the test run' ) , make_option ( '--verbose' , action = 'store_const' , const = 2 , dest = 'verbosity' ) , make_option ( '-q' , '--quiet' , action = 'store_const' , const = 0 , dest = 'verbosity' ) , make_option ( '-v' , '--verbosity' , action = 'count' , dest = 'verbosity' , default = 1 ) , make_option ( '--disable-migrations' , action = 'store_true' , dest = 'disable_migrations' , help = "Create tables directly from apps' models. Can also be used by exporting DISABLE_MIGRATIONS=1." ) , ( 'cov_args=' , None , 'deprecated in favor of cov-args' ) , make_option ( '-e' , '--extra_args' , default = '' , help = 'deprecated, pass extra options directly in the paver commandline' ) , ( 'fail_fast' , None , 'deprecated in favor of fail-fast' ) ] ) @ PassthroughTask @ timed def test_python ( options , passthrough_options ) : python_suite = suites . PythonTestSuite ( 'Python Tests' , passthrough_options = passthrough_options , ** options . test_python ) python_suite . run ( )
run all python tests .