This commit is contained in:
Phill Ridout 2017-12-04 20:49:59 +00:00
parent 4374200ab0
commit baed193444
2 changed files with 2 additions and 2 deletions
openlp/core/ui/media
tests/functional/openlp_core/lib

View File

@ -281,7 +281,7 @@ class VlcPlayer(MediaPlayer):
log.debug('mediatype: ' + str(controller.media_info.media_type)) log.debug('mediatype: ' + str(controller.media_info.media_type))
# Set tracks for the optical device # Set tracks for the optical device
if controller.media_info.media_type == MediaType.DVD and \ 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') log.debug('vlc play, playing started')
if controller.media_info.title_track > 0: if controller.media_info.title_track > 0:
log.debug('vlc play, title_track set: ' + str(controller.media_info.title_track)) log.debug('vlc play, title_track set: ' + str(controller.media_info.title_track))

View File

@ -38,7 +38,7 @@ class TestValidationError(TestCase):
# GIVEN: The ValidationError class # GIVEN: The ValidationError class
# WHEN: Creating an instance of ValidationError # 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` # 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' assert str(error) == 'Test ValidationError'