curds: Remove unused on_new_playback() callback
This callback no longer exists, so there is no point in testing it. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
7602acabb9
commit
c42bb04349
|
@ -23,7 +23,6 @@ class TestPlaylistRoot(unittest.TestCase):
|
|||
def setUp(self):
|
||||
tags.clear()
|
||||
library.reset()
|
||||
notify.register("new-playlist", self.on_new_playlist)
|
||||
notify.register("next-track", self.on_next_track)
|
||||
notify.register("playlist-changed", self.on_playlist_changed)
|
||||
|
||||
|
@ -38,18 +37,12 @@ class TestPlaylistRoot(unittest.TestCase):
|
|||
self.cb_change = [ ]
|
||||
|
||||
def tearDown(self):
|
||||
notify.cancel("new-track", self.playman.lookup("Collection").add)
|
||||
notify.cancel("new-track", self.playman.lookup("Genres").new_track)
|
||||
notify.cancel("new-playlist", self.on_new_playlist)
|
||||
notify.cancel("next-track", self.on_next_track)
|
||||
notify.cancel("new-track", self.playman.lookup("Collection").add)
|
||||
notify.cancel("new-track", self.playman.lookup("Genres").new_track)
|
||||
notify.cancel("next-track", self.on_next_track)
|
||||
notify.register("playlist-changed", self.on_playlist_changed)
|
||||
library.stop()
|
||||
|
||||
def on_new_playlist(self, plist, index, first):
|
||||
self.cb_plist = plist
|
||||
self.cb_index = index
|
||||
self.cb_first = first
|
||||
|
||||
def on_playlist_changed(self, plist):
|
||||
self.cb_change.append(plist)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user