From eeefc81174f82fc30a5f9632f2054db1f6a08304 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 2 Dec 2018 10:09:01 +0000 Subject: [PATCH] Fix tests and code --- tests/functional/openlp_core/lib/test_mediamanageritem.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/openlp_core/lib/test_mediamanageritem.py b/tests/functional/openlp_core/lib/test_mediamanageritem.py index cec0dc84e..91468c4aa 100644 --- a/tests/functional/openlp_core/lib/test_mediamanageritem.py +++ b/tests/functional/openlp_core/lib/test_mediamanageritem.py @@ -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')