def get_missing_steps(steps, covered_steps): """ Get all steps within ``steps`` which are not covered by ``covered_steps``. """ missing_steps = [] for step_func in steps.values(): if step_func.__name__ not in covered_steps: missing_steps.append((step_func.__name__, get_func_location(step_func))) return missing_steps
def get_missing_steps(steps, covered_steps): """ Get all steps within ``steps`` which are not covered by ``covered_steps``. """ missing_steps = [] for step_func in steps.values(): if step_func.__name__ not in covered_steps: missing_steps.append( (step_func.__name__, get_func_location(step_func))) return missing_steps
def output_failure(step_func, errors): """ Write the given errors to stdout. """ sys.stdout.write(u(colorful.bold_red(u'✘'))) if step_func is not None: sys.stdout.write( u(colorful.red(' (at {0})'.format(get_func_location(step_func))))) sys.stdout.write('\n') for error in errors: print(u(colorful.red(' - {0}'.format(error))))
def output_failure(step_func, errors): """ Write the given errors to stdout. """ sys.stdout.write(u(colorful.bold_red("✘"))) if step_func is not None: sys.stdout.write( u(colorful.red(" (at {0})".format(get_func_location(step_func))))) sys.stdout.write("\n") for error in errors: print(u(colorful.red(" - {0}".format(error))))
def output_failure(step_func, errors): """ Write the given errors to stdout. """ sys.stdout.write(u(colorful.bold_red("✘"))) if step_func is not None: sys.stdout.write( u(colorful.red(" (at {0})".format(get_func_location(step_func)))) ) sys.stdout.write("\n") for error in errors: print(u(colorful.red(" - {0}".format(error))))