forked from openlp/openlp
Fix tests and code
This commit is contained in:
parent
c1c8f3e75d
commit
eeefc81174
@ -52,6 +52,9 @@ class TestMediaManagerItem(TestCase, TestMixin):
|
||||
mocked_settings.value.return_value = False
|
||||
MockedSettings.return_value = mocked_settings
|
||||
mmi = MediaManagerItem(None)
|
||||
mmi.can_preview = True
|
||||
mmi.can_make_live = True
|
||||
mmi.can_add_to_service = True
|
||||
|
||||
# WHEN: on_double_clicked() is called
|
||||
mmi.on_double_clicked()
|
||||
@ -73,6 +76,9 @@ class TestMediaManagerItem(TestCase, TestMixin):
|
||||
assert mmi.has_file_icon is False, 'There should be no file icon by default'
|
||||
assert mmi.has_delete_icon is True, 'By default a delete icon should be present'
|
||||
assert mmi.add_to_service_item is False, 'There should be no add_to_service icon by default'
|
||||
assert mmi.can_preview is True, 'There should be a preview icon by default'
|
||||
assert mmi.can_make_live is True, 'There should be a make live by default'
|
||||
assert mmi.can_add_to_service is True, 'There should be a add to service icon by default'
|
||||
|
||||
@patch('openlp.core.lib.mediamanageritem.Settings')
|
||||
@patch('openlp.core.lib.mediamanageritem.MediaManagerItem.on_live_click')
|
||||
|
Loading…
Reference in New Issue
Block a user