def test_acceptance(options): """ Run the acceptance tests for the either lms or cms """ opts = { 'fasttest': getattr(options, 'fasttest', False), 'system': getattr(options, 'system', None), 'default_store': getattr(options, 'default_store', None), 'verbosity': getattr(options, 'verbosity', 3), 'extra_args': getattr(options, 'extra_args', ''), 'pdb': getattr(options, 'pdb', False), } if opts['system'] not in ['cms', 'lms']: msg = colorize( 'red', 'No system specified, running tests for both cms and lms.' ) print msg if opts['default_store'] not in ['draft', 'split']: msg = colorize( 'red', 'No modulestore specified, running tests for both draft and split.' ) print msg suite = AcceptanceTestSuite('{} acceptance'.format(opts['system']), **opts) suite.run()
def test_acceptance(options): """ Run the acceptance tests for the either lms or cms """ opts = { 'fasttest': getattr(options, 'fasttest', False), 'system': getattr(options, 'system', None), 'default_store': getattr(options, 'default_store', None), 'verbosity': getattr(options, 'verbosity', 3), 'extra_args': getattr(options, 'extra_args', ''), 'pdb': getattr(options, 'pdb', False), } if opts['system'] not in ['cms', 'lms']: msg = colorize( 'red', 'No system specified, running tests for both cms and lms.') print(msg) if opts['default_store'] not in ['draft', 'split']: msg = colorize( 'red', 'No modulestore specified, running tests for both draft and split.' ) print(msg) suite = AcceptanceTestSuite('{} acceptance'.format(opts['system']), **opts) suite.run()
def test_acceptance(options, passthrough_options): """ Run the acceptance tests for either lms or cms """ opts = { "fasttest": getattr(options, "fasttest", False), "system": getattr(options, "system", None), "default_store": getattr(options, "default_store", None), "verbosity": getattr(options, "verbosity", 3), "extra_args": getattr(options, "extra_args", ""), "pdb": getattr(options, "pdb", False), "passthrough_options": passthrough_options, } if opts["system"] not in ["cms", "lms"]: msg = colorize("red", "No system specified, running tests for both cms and lms.") print msg if opts["default_store"] not in ["draft", "split"]: msg = colorize("red", "No modulestore specified, running tests for both draft and split.") print msg suite = AcceptanceTestSuite("{} acceptance".format(opts["system"]), **opts) suite.run()