Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, _list=list()):
super(Context, self).__init__(_list)
self._stack = [_list]
def __init__(self, behave_config):
self.behave_config = behave_config
self.logger = AllureReporter()
self.current_step_uuid = None
self.current_scenario_uuid = None
self.execution_context = Context()
self.fixture_context = Context()
self.steps = deque()
def __init__(self, behave_config):
self.behave_config = behave_config
self.logger = AllureReporter()
self.current_step_uuid = None
self.current_scenario_uuid = None
self.execution_context = Context()
self.fixture_context = Context()
self.steps = deque()
def __init__(self, stream_opener, config):
super(AllureFormatter, self).__init__(stream_opener, config)
self.listener = AllureListener(config)
file_logger = AllureFileLogger(self.stream_opener.name)
allure_commons.plugin_manager.register(self.listener)
allure_commons.plugin_manager.register(file_logger)
def allure_report(result_dir="allure_results"):
allure_hooks = AllureHooks(result_dir)
frame = inspect.currentframe()
try:
for hook_name in HOOKS:
if hook_name in frame.f_back.f_locals:
frame.f_back.f_locals[hook_name] = wrapper(frame.f_back.f_locals[hook_name],
getattr(allure_hooks, hook_name))
else:
frame.f_back.f_locals[hook_name] = getattr(allure_hooks, hook_name)
finally:
del frame