forked from openlp/openlp
fix tests
This commit is contained in:
parent
e08440ea2f
commit
b3cd5a7b3d
@ -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__ = {
|
||||
|
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user