forked from openlp/openlp
Fix some issues from the mergefest
bzr-revno: 2779
This commit is contained in:
parent
19040ebb5d
commit
4d68382d52
@ -29,7 +29,7 @@ import logging
|
|||||||
from sqlalchemy import Table, Column, ForeignKey, types
|
from sqlalchemy import Table, Column, ForeignKey, types
|
||||||
from sqlalchemy.sql.expression import func, false, null, text
|
from sqlalchemy.sql.expression import func, false, null, text
|
||||||
|
|
||||||
from openlp.core.common import AppLocation
|
from openlp.core.common.applocation import AppLocation
|
||||||
from openlp.core.common.db import drop_columns
|
from openlp.core.common.db import drop_columns
|
||||||
from openlp.core.common.json import OpenLPJsonEncoder
|
from openlp.core.common.json import OpenLPJsonEncoder
|
||||||
from openlp.core.common.path import Path
|
from openlp.core.common.path import Path
|
||||||
|
@ -33,7 +33,7 @@ from openlp.core.ui.style import MEDIA_MANAGER_STYLE, WIN_REPAIR_STYLESHEET, get
|
|||||||
@skipIf(not hasattr(openlp.core.ui.style, 'qdarkstyle'), 'qdarkstyle is not installed')
|
@skipIf(not hasattr(openlp.core.ui.style, 'qdarkstyle'), 'qdarkstyle is not installed')
|
||||||
@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('object(openlp.core.ui.style.qdarkstyle')
|
@patch('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