forked from openlp/openlp
Fix changed imports in mockups
This commit is contained in:
parent
0227e0a2bd
commit
7545fb534f
@ -36,7 +36,7 @@ PREREQUISITE: add_record() and get_all() functions validated.
|
||||
from unittest import TestCase
|
||||
from tests.functional import MagicMock, patch
|
||||
|
||||
from openlp.core.lib.projectordb import Projector, ProjectorDB
|
||||
from openlp.core.lib.projector.db import Projector, ProjectorDB
|
||||
|
||||
from tests.resources.projector.data import TEST1_DATA, TEST2_DATA, TEST3_DATA
|
||||
|
||||
@ -85,7 +85,7 @@ class TestProjectorDB(TestCase):
|
||||
Set up anything necessary for all tests
|
||||
"""
|
||||
if not hasattr(self, 'projector'):
|
||||
with patch('openlp.core.lib.projectordb.init_url') as mocked_init_url:
|
||||
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
|
||||
mocked_init_url.start()
|
||||
mocked_init_url.return_value = 'sqlite:///%s' % tmpfile
|
||||
self.projector = ProjectorDB()
|
||||
|
@ -36,7 +36,7 @@ from tests.functional import patch, MagicMock
|
||||
from tests.helpers.testmixin import TestMixin
|
||||
|
||||
from openlp.core.ui import ProjectorManager, ProjectorWizard
|
||||
from openlp.core.lib.projectordb import Projector, ProjectorDB
|
||||
from openlp.core.lib.projector.db import Projector, ProjectorDB
|
||||
|
||||
from tests.resources.projector.data import TEST1_DATA, TEST2_DATA, TEST3_DATA
|
||||
|
||||
@ -55,7 +55,7 @@ class TestProjectorManager(TestCase, TestMixin):
|
||||
self.get_application()
|
||||
Registry.create()
|
||||
if not hasattr(self, 'projector_manager'):
|
||||
with patch('openlp.core.lib.projectordb.init_url') as mocked_init_url:
|
||||
with patch('openlp.core.lib.projector.db.init_url') as mocked_init_url:
|
||||
mocked_init_url.start()
|
||||
mocked_init_url.return_value = 'sqlite:///%s' % tmpfile
|
||||
self.projectordb = ProjectorDB()
|
||||
|
@ -30,7 +30,7 @@
|
||||
The :mod:`tests.resources.projector.data file contains test data
|
||||
"""
|
||||
|
||||
from openlp.core.lib.projectordb import Projector
|
||||
from openlp.core.lib.projector.db import Projector
|
||||
|
||||
# Test data
|
||||
TEST1_DATA = Projector(ip='111.111.111.111',
|
||||
|
Loading…
Reference in New Issue
Block a user