Exemple #1
0
    def setUp(self):
        super(MockedHookTestCase, self).setUp()

        hooks.reset()

        hook_manager = hooks.HookManager.make_test_instance(self.PLUGINS)
        self.stubs.Set(hooks, 'HookManager', lambda x: hook_manager)
Exemple #2
0
    def setUp(self):
        super(HookTestCase, self).setUp()

        hooks.reset()

        self.stubs.Set(stevedore.extension.ExtensionManager, '_load_plugins',
                       self._mock_load_plugins)
Exemple #3
0
    def setUp(self):
        super(HookTestCase, self).setUp()

        hooks.reset()

        self.stubs.Set(stevedore.extension.ExtensionManager, '_load_plugins',
                       self._mock_load_plugins)
Exemple #4
0
    def setUp(self):
        super(MockedHookTestCase, self).setUp()

        hooks.reset()

        hook_manager = hooks.HookManager.make_test_instance(self.PLUGINS)
        self.stubs.Set(hooks, 'HookManager', lambda x: hook_manager)
Exemple #5
0
    def setUp(self):
        super(HookTestCase, self).setUp()

        hooks.reset()
Exemple #6
0
    def setUp(self):
        super(HookTestCase, self).setUp()

        hooks.reset()