forked from openlp/openlp
Change test from wizard to edit form
This commit is contained in:
parent
ec59abdc85
commit
81e7798c50
@ -35,7 +35,7 @@ from openlp.core.common import Registry, Settings
|
|||||||
from tests.functional import patch, MagicMock
|
from tests.functional import patch, MagicMock
|
||||||
from tests.helpers.testmixin import TestMixin
|
from tests.helpers.testmixin import TestMixin
|
||||||
|
|
||||||
from openlp.core.ui import ProjectorManager, ProjectorWizard
|
from openlp.core.ui import ProjectorManager
|
||||||
from openlp.core.lib.projector.db import Projector, ProjectorDB
|
from openlp.core.lib.projector.db import Projector, ProjectorDB
|
||||||
|
|
||||||
from tests.resources.projector.data import TEST1_DATA, TEST2_DATA, TEST3_DATA
|
from tests.resources.projector.data import TEST1_DATA, TEST2_DATA, TEST3_DATA
|
||||||
@ -94,8 +94,8 @@ class TestProjectorManager(TestCase, TestMixin):
|
|||||||
'Initialization should have called load_projectors()')
|
'Initialization should have called load_projectors()')
|
||||||
|
|
||||||
# THEN: Verify wizard page is initialized
|
# THEN: Verify wizard page is initialized
|
||||||
self.assertEqual(type(self.projector_manager.projector_form), ProjectorWizard,
|
self.assertEqual(type(self.projector_manager.projector_form), ProjectorEditForm,
|
||||||
'Initialization should have created a Wizard')
|
'Initialization should have created a Projector Edit Form')
|
||||||
self.assertIs(self.projector_manager.projectordb,
|
self.assertIs(self.projector_manager.projectordb,
|
||||||
self.projector_manager.projector_form.db,
|
self.projector_manager.projector_form.projectordb,
|
||||||
'Wizard should be using same ProjectorDB() instance')
|
'ProjectorEditForm should be using same ProjectorDB() instance')
|
||||||
|
Loading…
Reference in New Issue
Block a user