Skip to content
Snippets Groups Projects
Commit 2d74bdf0 authored by Stefano Borini's avatar Stefano Borini
Browse files

Fixed test

parent 28a8ca1b
No related branches found
No related tags found
1 merge request!93UI Hooks
......@@ -9,8 +9,13 @@ from envisage.api import Plugin
from ..base_ui_hooks_factory import BaseUIHooksFactory
class NullUIHooksFactory(BaseUIHooksFactory):
def create_ui_hooks_manager(self):
return None
class TestBaseUIHooksFactory(unittest.TestCase):
def test_initialize(self):
mock_plugin = mock.Mock(spec=Plugin)
factory = BaseUIHooksFactory(plugin=mock_plugin)
factory = NullUIHooksFactory(plugin=mock_plugin)
self.assertEqual(factory.plugin, mock_plugin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment