Adjust fragile test criteria in test_next_with_random
This commit is contained in:
parent
560275edca
commit
a165304da7
@ -723,11 +723,12 @@ class BasePlaybackControllerTest(object):
|
||||
|
||||
@populate_playlist
|
||||
def test_next_with_random(self):
|
||||
# FIXME feels very fragile
|
||||
random.seed(1)
|
||||
self.playback.random = True
|
||||
self.playback.play()
|
||||
self.playback.next()
|
||||
self.assertEqual(self.playback.current_track, self.tracks[1])
|
||||
self.assertEqual(self.playback.current_track, self.tracks[2])
|
||||
|
||||
@populate_playlist
|
||||
def test_previous_with_random(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user