forked from openlp/openlp
Remove a logging line I never wrote, and move a variable in a test that I need to mock
This commit is contained in:
parent
c3bb167b32
commit
c4a257c9dd
@ -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
|
from openlp.core.lib.projector.constants import PJLINK_DEFAULT_SOURCES, PJLINK_DEFAULT_CODES
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
log.debug('editform loaded')
|
|
||||||
|
|
||||||
|
|
||||||
def source_group(inputs, source_text):
|
def source_group(inputs, source_text):
|
||||||
|
@ -70,9 +70,10 @@ class TestRegistryProperties(TestCase, RegistryProperties):
|
|||||||
mocked_is_win.return_value = True
|
mocked_is_win.return_value = True
|
||||||
mock_application = MagicMock()
|
mock_application = MagicMock()
|
||||||
reg_props = RegistryProperties()
|
reg_props = RegistryProperties()
|
||||||
|
registry = Registry()
|
||||||
|
|
||||||
# WHEN the application is accessed
|
# 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
|
mocked_get.return_value = mock_application
|
||||||
actual_application = reg_props.application
|
actual_application = reg_props.application
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user