Fix appvoyer yet another go.

This commit is contained in:
Tim 2020-02-22 21:16:40 +00:00
parent fbcf47c86a
commit 7fc55e3e40
No known key found for this signature in database
GPG Key ID: 3D454289AF831A6D

View File

@ -21,19 +21,17 @@
Package to test the openlp.core.ui.icons package. Package to test the openlp.core.ui.icons package.
""" """
from unittest.mock import patch from unittest.mock import patch
from PyQt5 import QtGui from PyQt5 import QtGui
from openlp.core.ui.icons import UiIcons from openlp.core.ui.icons import UiIcons
@patch('openlp.core.ui.icons.UiIcons.__init__', return_value=None)
def test_simple_icon(settings): def test_simple_icon(settings):
# GIVEN: an basic set of icons # GIVEN: an basic set of icons
with patch('openlp.core.ui.icons.UiIcons.__init__', return_value=None):
icons = UiIcons() icons = UiIcons()
icon_list = { icon_list = {
'active': {'icon': 'fa.child'} 'active': {'icon': 'fa.child'}
} }
icons.load_icons(icon_list) icons.load_icons(icon_list)