forked from openlp/openlp
Fix some linting issues
This commit is contained in:
parent
0dcf3de267
commit
11fbad77dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user