def integrate(args, nose_run_kwargs=None): """ Run integration tests """ nose_run_kwargs = nose_run_kwargs or {} args.extend(["--with-selenium", "--with-djangoliveserver", '--with-test-storages']) nose_run_kwargs.update({'addplugins' : [get_storage_plugin()]}) from citools.pavement import run_tests run_tests(test_project_module="example_project", nose_args=args, nose_run_kwargs=nose_run_kwargs)
def unit(args, nose_run_kwargs=None): """ Run unittests """ nose_run_kwargs = nose_run_kwargs or {} args.append('--with-test-storages') nose_run_kwargs.update({'addplugins' : [get_storage_plugin()]}) from citools.pavement import run_tests run_tests(test_project_module="unit_project", nose_args=args, nose_run_kwargs=nose_run_kwargs)
def unit(args): from citools.pavement import run_tests args.append('--with-mongo-database') run_tests(test_project_module="unit_project", nose_args=args, nose_run_kwargs={'addplugins' : [get_plugin()]})