Remove a logging line I never wrote, and move a variable in a test that I need to mock

This commit is contained in:
Raoul Snyman 2016-08-12 11:23:56 +02:00
parent c3bb167b32
commit c4a257c9dd
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -70,9 +70,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