forked from openlp/openlp
- Tried to make the new text work with the registry changes but failed.
> Test is broken, do not merge!
This commit is contained in:
parent
22ff4247ad
commit
7b643b06ac
@ -662,6 +662,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
|
|||||||
plugin.app_startup()
|
plugin.app_startup()
|
||||||
self.application.process_events()
|
self.application.process_events()
|
||||||
|
|
||||||
|
|
||||||
def first_time(self):
|
def first_time(self):
|
||||||
"""
|
"""
|
||||||
Import themes if first time
|
Import themes if first time
|
||||||
|
@ -718,7 +718,7 @@ class TestSlideController(TestCase):
|
|||||||
# GIVEN: A slide controller, actions needed, settins set to True.
|
# GIVEN: A slide controller, actions needed, settins set to True.
|
||||||
slide_controller = SlideController(None)
|
slide_controller = SlideController(None)
|
||||||
mocked_settings = MagicMock()
|
mocked_settings = MagicMock()
|
||||||
mocked_settings.value.return_value = True
|
mocked_settings.return_value = True
|
||||||
MockedSettings.return_value = mocked_settings
|
MockedSettings.return_value = mocked_settings
|
||||||
slide_controller.service_item = MagicMock()
|
slide_controller.service_item = MagicMock()
|
||||||
slide_controller.service_item.is_media = MagicMock()
|
slide_controller.service_item.is_media = MagicMock()
|
||||||
@ -727,6 +727,11 @@ class TestSlideController(TestCase):
|
|||||||
slide_controller.on_preview_add_to_service = MagicMock()
|
slide_controller.on_preview_add_to_service = MagicMock()
|
||||||
slide_controller.media_reset = MagicMock()
|
slide_controller.media_reset = MagicMock()
|
||||||
|
|
||||||
|
Registry.create()
|
||||||
|
reg_value = True
|
||||||
|
Registry().set_flag('has doubleclick added item to service', reg_value)
|
||||||
|
temp = Registry().get_flag('has doubleclick added item to service')
|
||||||
|
|
||||||
# WHEN: on_preview_double_click is called
|
# WHEN: on_preview_double_click is called
|
||||||
slide_controller.on_preview_double_click()
|
slide_controller.on_preview_double_click()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user