forked from openlp/openlp
fix test
This commit is contained in:
parent
ea846abab2
commit
25a43669d7
@ -27,7 +27,7 @@ from openlp.core.common import RegistryProperties, Settings
|
|||||||
|
|
||||||
class Poller(RegistryProperties):
|
class Poller(RegistryProperties):
|
||||||
"""
|
"""
|
||||||
Access by the web layer to get status type information from the application
|
Accessed by the web layer to get status type information from the application
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
|
@ -35,12 +35,12 @@ class TestController(TestCase):
|
|||||||
"""
|
"""
|
||||||
A test suite to test out the Error in the API code
|
A test suite to test out the Error in the API code
|
||||||
"""
|
"""
|
||||||
@patch('openlp.core.api.controller.Poll')
|
@patch('openlp.core.api.controller.Poller')
|
||||||
@patch('openlp.core.api.controller.WebSocketServer')
|
@patch('openlp.core.api.controller.WebSocketServer')
|
||||||
@patch('openlp.core.api.controller.http.HttpServer')
|
@patch('openlp.core.api.controller.HttpServer')
|
||||||
def test_bootstrap(self, mock_http, mock_ws, mock_poll):
|
def test_bootstrap(self, mock_http, mock_ws, mock_poll):
|
||||||
"""
|
"""
|
||||||
Test the Not Found error displays the correct information
|
Test the controller creates the correct objects.
|
||||||
"""
|
"""
|
||||||
# GIVEN: A controller
|
# GIVEN: A controller
|
||||||
Registry.create()
|
Registry.create()
|
||||||
|
Loading…
Reference in New Issue
Block a user