Fix some linting issues

This commit is contained in:
Raoul Snyman 2017-09-29 08:55:39 -07:00
parent 0dcf3de267
commit 11fbad77dc
1 changed files with 5 additions and 4 deletions

View File

@ -24,13 +24,14 @@ Package to test the :mod:`~openlp.core.ui.style` module.
"""
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, \
get_library_stylesheet
@patch('openlp.core.ui.style.HAS_DARK_STYLE', True)
@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):
"""Test that the dark stylesheet is returned when available and enabled"""
# GIVEN: We're on Windows and no dark style is set