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, 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)