From baed1934446668b0cd8b99151f3936d1a0266563 Mon Sep 17 00:00:00 2001 From: Phill Ridout Date: Mon, 4 Dec 2017 20:49:59 +0000 Subject: [PATCH] PEP8 --- openlp/core/ui/media/vlcplayer.py | 2 +- tests/functional/openlp_core/lib/test_exceptions.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/media/vlcplayer.py b/openlp/core/ui/media/vlcplayer.py index 4ad9d990f..840471cfe 100644 --- a/openlp/core/ui/media/vlcplayer.py +++ b/openlp/core/ui/media/vlcplayer.py @@ -281,7 +281,7 @@ class VlcPlayer(MediaPlayer): log.debug('mediatype: ' + str(controller.media_info.media_type)) # Set tracks for the optical device if controller.media_info.media_type == MediaType.DVD and \ - self.get_live_state() != MediaState.Paused and self.get_preview_state() != MediaState.Paused: + self.get_live_state() != MediaState.Paused and self.get_preview_state() != MediaState.Paused: log.debug('vlc play, playing started') if controller.media_info.title_track > 0: log.debug('vlc play, title_track set: ' + str(controller.media_info.title_track)) diff --git a/tests/functional/openlp_core/lib/test_exceptions.py b/tests/functional/openlp_core/lib/test_exceptions.py index bf5efa949..c0de323b7 100644 --- a/tests/functional/openlp_core/lib/test_exceptions.py +++ b/tests/functional/openlp_core/lib/test_exceptions.py @@ -38,7 +38,7 @@ class TestValidationError(TestCase): # GIVEN: The ValidationError class # WHEN: Creating an instance of ValidationError - error = ValidationError('Test ValidationError') + error = ValidationError('Test ValidationError') # THEN: Then calling str on the error should return the correct text and it should be an instance of `Exception` assert str(error) == 'Test ValidationError'