How to use the allure-python-commons.src._core.MetaPluginManager._storage function in allure-python-commons

To help you get started, we’ve selected a few allure-python-commons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github allure-framework / allure-python / allure-python-commons / src / _core.py View on Github external
def get_plugin_manager():
        if not hasattr(MetaPluginManager._storage, 'plugin_manager'):
            MetaPluginManager._storage.plugin_manager = PluginManager('allure')
            MetaPluginManager._storage.plugin_manager.add_hookspecs(_hooks.AllureUserHooks)
            MetaPluginManager._storage.plugin_manager.add_hookspecs(_hooks.AllureDeveloperHooks)

        return MetaPluginManager._storage.plugin_manager
github allure-framework / allure-python / allure-python-commons / src / _core.py View on Github external
def get_plugin_manager():
        if not hasattr(MetaPluginManager._storage, 'plugin_manager'):
            MetaPluginManager._storage.plugin_manager = PluginManager('allure')
            MetaPluginManager._storage.plugin_manager.add_hookspecs(_hooks.AllureUserHooks)
            MetaPluginManager._storage.plugin_manager.add_hookspecs(_hooks.AllureDeveloperHooks)

        return MetaPluginManager._storage.plugin_manager