forked from openlp/openlp
Removed a log line I never wrote and move a variable for a test I need it in
This commit is contained in:
parent
0fc598fab5
commit
c9ff88ebfc
@ -34,7 +34,6 @@ from openlp.core.lib.projector.db import ProjectorSource
|
||||
from openlp.core.lib.projector.constants import PJLINK_DEFAULT_SOURCES, PJLINK_DEFAULT_CODES
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
log.debug('editform loaded')
|
||||
|
||||
|
||||
def source_group(inputs, source_text):
|
||||
@ -270,7 +269,6 @@ class SourceSelectTabs(QtWidgets.QDialog):
|
||||
self.projector = projector
|
||||
self.source_text = self.projectordb.get_source_list(projector=projector)
|
||||
self.source_group = source_group(projector.source_available, self.source_text)
|
||||
# self.source_group = {'4': {'41': 'Storage 1'}, '5': {"51": 'Network 1'}}
|
||||
self.button_group = [] if self.edit else QtWidgets.QButtonGroup()
|
||||
keys = list(self.source_group.keys())
|
||||
keys.sort()
|
||||
|
@ -37,7 +37,7 @@ class TestRegistryProperties(TestCase, RegistryProperties):
|
||||
"""
|
||||
Create the Register
|
||||
"""
|
||||
self.registry = Registry.create()
|
||||
Registry.create()
|
||||
|
||||
def test_no_application(self):
|
||||
"""
|
||||
@ -85,9 +85,10 @@ class TestRegistryProperties(TestCase, RegistryProperties):
|
||||
mocked_is_win.return_value = True
|
||||
mock_application = MagicMock()
|
||||
reg_props = RegistryProperties()
|
||||
registry = Registry()
|
||||
|
||||
# WHEN the application is accessed
|
||||
with patch.object(self.registry, 'get') as mocked_get:
|
||||
with patch.object(registry, 'get') as mocked_get:
|
||||
mocked_get.return_value = mock_application
|
||||
actual_application = reg_props.application
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user