def print_snippets(self): if self.undefined: formatted = ["\nYou can implement step definitions for missing steps with these snippets:\n", ] for name, (kw, multi) in self.undefined.items(): formatted.append('\n') formatted.append(snippet(kw, name, multi)) self.__out.write(self.color_scheme.undefined(''.join(formatted)))
def snippet(args): import snippet snippet.snippet(args)