forked from openlp/openlp
PEP8
This commit is contained in:
parent
4374200ab0
commit
baed193444
@ -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))
|
||||
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user