Fix some linting issues

This commit is contained in:
Raoul Snyman 2017-09-29 08:55:39 -07:00
parent 0dcf3de267
commit 11fbad77dc

View File

@ -24,13 +24,14 @@ Package to test the :mod:`~openlp.core.ui.style` module.
""" """
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
import openlp.core.ui.style
from openlp.core.ui.style import MEDIA_MANAGER_STYLE, WIN_REPAIR_STYLESHEET, get_application_stylesheet, \ from openlp.core.ui.style import MEDIA_MANAGER_STYLE, WIN_REPAIR_STYLESHEET, get_application_stylesheet, \
get_library_stylesheet get_library_stylesheet
@patch('openlp.core.ui.style.HAS_DARK_STYLE', True) @patch('openlp.core.ui.style.HAS_DARK_STYLE', True)
@patch('openlp.core.ui.style.Settings') @patch('openlp.core.ui.style.Settings')
@patch('openlp.core.ui.style.qdarkstyle') @patch.object(openlp.core.ui.style, 'qdarkstyle')
def test_get_application_stylesheet_dark(mocked_qdarkstyle, MockSettings): def test_get_application_stylesheet_dark(mocked_qdarkstyle, MockSettings):
"""Test that the dark stylesheet is returned when available and enabled""" """Test that the dark stylesheet is returned when available and enabled"""
# GIVEN: We're on Windows and no dark style is set # GIVEN: We're on Windows and no dark style is set