fix tests

This commit is contained in:
Tim Bentley 2016-06-14 21:48:32 +01:00
parent dc4d7fcfb1
commit ed28ad2ebc

View File

@ -26,7 +26,7 @@ import os
import urllib.request import urllib.request
from unittest import TestCase from unittest import TestCase
from openlp.core.api.poll import Poll from openlp.core.api import Poll
from openlp.core.common import Settings, Registry from openlp.core.common import Settings, Registry
from openlp.core.ui import ServiceManager from openlp.core.ui import ServiceManager
from openlp.plugins.remotes.lib.httpserver import HttpRouter from openlp.plugins.remotes.lib.httpserver import HttpRouter
@ -74,7 +74,7 @@ class TestRouter(TestCase, TestMixin):
Settings().setValue('remotes/user id', 'openlp') Settings().setValue('remotes/user id', 'openlp')
Settings().setValue('remotes/password', 'password') Settings().setValue('remotes/password', 'password')
poll = MagicMock() poll = MagicMock()
Registry().register('OpenLPPoll', poll) Registry().register('api_poll', poll)
# WHEN: called with the defined userid # WHEN: called with the defined userid
router = HttpRouter() router = HttpRouter()