def test_openmdao(parser, options, args): # nosetests uses sys.argv for its usage message when the user passes a -h # arg, regardless of what args we pass to it, so if we see -h in sys.args, # change the first entry in sys.argv to 'openmdao test'. Otherwise, usage message # will be 'openmdao [options]' instead of 'openmdao test [options]' if '-h' in sys.argv or '--help' in sys.argv: sys.argv[0] = 'openmdao test' run_openmdao_suite(sys.argv[1:])
def test_openmdao(parser, options, args): # nosetests uses sys.argv for its usage message when the user passes a -h # arg, regardless of what args we pass to it, so if we see -h in sys.args, # change the first entry in sys.argv to 'openmdao test'. Otherwise, usage # message will be 'openmdao [options]' instead of 'openmdao test [options]' if '-h' in sys.argv or '--help' in sys.argv: sys.argv[0] = 'openmdao test' run_openmdao_suite(sys.argv[1:])
def test_openmdao(options, args=None): run_openmdao_suite(sys.argv[1:])