From b3cd5a7b3dddc6ab134acfe404a0ba36439d218e Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sat, 12 Aug 2017 20:22:09 +0100 Subject: [PATCH] fix tests --- tests/functional/openlp_core_api/test_websockets.py | 2 +- tests/functional/openlp_core_ui/test_mainwindow.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 '