def setUp(self): runner_ = Mock() self.config = runner_.config = Mock() runner_.config.verbose = False runner_.config.stdout_capture = False runner_.config.stderr_capture = False runner_.config.log_capture = False self.context = runner.Context(runner_) runner_.context = self.context self.context.feature = Mock() self.context.feature.parser = parser.Parser() if not self.step_registry: # -- SETUP ONCE: self.step_registry = step_registry.StepRegistry() ExampleSteps.register_steps_with(self.step_registry) ExampleSteps.text = None ExampleSteps.table = None
def parse_tags(line): the_parser = parser.Parser() return the_parser.parse_tags(line.strip())