diff --git a/tests/functional/openlp_core_api/test_websockets.py b/tests/functional/openlp_core_api/test_websockets.py index 80ecb8832..2fe0b91dd 100644 --- a/tests/functional/openlp_core_api/test_websockets.py +++ b/tests/functional/openlp_core_api/test_websockets.py @@ -24,11 +24,11 @@ Functional tests to test the Http Server Class. """ from unittest import TestCase +from unittest.mock import MagicMock, patch from openlp.core.common import Registry, Settings from openlp.core.api.websockets import WebSocketServer from openlp.core.api.poll import Poller -from tests.functional import MagicMock, patch from tests.helpers.testmixin import TestMixin __default_settings__ = { diff --git a/tests/functional/openlp_core_ui/test_mainwindow.py b/tests/functional/openlp_core_ui/test_mainwindow.py index 18f2dcddf..2582acfa5 100644 --- a/tests/functional/openlp_core_ui/test_mainwindow.py +++ b/tests/functional/openlp_core_ui/test_mainwindow.py @@ -151,7 +151,7 @@ class TestMainWindow(TestCase, TestMixin): # THEN: the following registry functions should have been registered self.assertEqual(len(self.registry.service_list), 6, 'The registry should have 6 services.') - self.assertEqual(len(self.registry.functions_list), 17, 'The registry should have 17 functions') + self.assertEqual(len(self.registry.functions_list), 18, 'The registry should have 18 functions') self.assertTrue('application' in self.registry.service_list, 'The application should have been registered.') self.assertTrue('main_window' in self.registry.service_list, 'The main_window should have been registered.') self.assertTrue('media_controller' in self.registry.service_list, 'The media_controller should have been '