def setUp(self): self.sc = Scenario(background=None, steps=[]) self.listener = ListenerPlaceholder() event.add_listener(self.listener) self.step_definitions = StepDefinitionsPlaceholder()
def setUp(self): self.step = Step(multi=None) self.listener = ListenerPlaceholder() event.add_listener(self.listener) self.step_definitions = StepDefinitionsAndMatchPlaceholder()
cli_opts = CommandLineOptions() # Use Multiplexer because I want to know the source of all options. options = Multiplexer(DEFAULT_OPTIONS, ProfileOptions(), EnvOptions(), cli_opts) # If '--profile' option passed from command line, load such profile. if cli_opts.profile: options.__outputs__.insert(-1, ProfileOptions(cli_opts.profile)) # # Configure output: # use only 'pretty' format with default color scheme. # reporter = PrettyReporter() reporter.color_scheme = ColorScheme(DEFAULT_COLORS, console_color_string) add_listener(reporter) # # Create main app objects. # features = Features() step_definitions = StepDefinitions() run = Run() # Apply options. options(reporter, features, step_definitions, run) step_definitions.load() run(features, step_definitions)
def setUp(self): self.bg = Background(steps=[]) self.listener = ListenerPlaceholder() event.add_listener(self.listener)
def setUp(self): self.feature = Feature(feature_elements=[], tags=frozenset()) self.listener = ListenerPlaceholder() event.add_listener(self.listener)