Esempio n. 1
0
    def inner(cls):
        from sentry.plugins.base import plugins

        plugins.register(cls)
        request.addfinalizer(lambda: plugins.unregister(cls))
Esempio n. 2
0
    def inner(cls):
        from sentry.plugins.base import plugins

        monkeypatch.setitem(globals(), cls.__name__, cls)
        plugins.register(cls)
        request.addfinalizer(lambda: plugins.unregister(cls))
Esempio n. 3
0
def unregister_mock_plugins():
    plugins.unregister(VstsPlugin)
    plugins.unregister(GitHubPlugin)
    plugins.unregister(BitbucketPlugin)