curds: Remove GenrePlaylist
It is now unused Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
bfe7e3550b
commit
b2dc1b8c5e
|
@ -7,7 +7,6 @@ from . import threadqueue
|
|||
|
||||
Album = tags.Album
|
||||
DataFile = data.DataFile
|
||||
GenrePlaylist = playlist.genre.GenrePlaylist
|
||||
LibraryPlaylist = playlist.library.LibraryPlaylist
|
||||
Playlist = playlist.playlist.Playlist
|
||||
PlaylistNode = playlist.node.PlaylistNode
|
||||
|
|
|
@ -3,11 +3,6 @@ from . import node
|
|||
from . import playlist
|
||||
from .. import notify
|
||||
|
||||
class GenrePlaylist(playlist.Playlist):
|
||||
def __init__(self, name):
|
||||
playlist.Playlist.__init__(self, name.title(), "audio-x-generic-symbolic")
|
||||
|
||||
|
||||
class GenreNode(node.PlaylistNode):
|
||||
def __init__(self):
|
||||
node.PlaylistNode.__init__(self, "Genres", "audio-x-generic-symbolic")
|
||||
|
|
|
@ -10,10 +10,9 @@ import unittest
|
|||
test_library = os.path.abspath("./trier/Test Library/Test Artist 01")
|
||||
|
||||
class TestGenrePlaylist(unittest.TestCase):
|
||||
def setUp(self):
|
||||
def test_genre_node(self):
|
||||
notify.registered.clear()
|
||||
|
||||
def test_genre_node(self):
|
||||
gnode = genre.GenreNode()
|
||||
self.assertIsInstance(gnode, node.PlaylistNode)
|
||||
self.assertEqual(gnode.name, "Genres")
|
||||
|
@ -49,10 +48,3 @@ class TestGenrePlaylist(unittest.TestCase):
|
|||
gnode.reset()
|
||||
self.assertEqual(gnode.n_children(), 0)
|
||||
self.assertIn((gnode.new_track, False), notify.registered["new-track"])
|
||||
|
||||
def test_genre_plist(self):
|
||||
plist = genre.GenrePlaylist("genre")
|
||||
self.assertIsInstance(plist, genre.GenrePlaylist)
|
||||
self.assertIsInstance(plist, playlist.Playlist)
|
||||
self.assertEqual(plist.name, "Genre")
|
||||
self.assertEqual(plist.icon, "audio-x-generic-symbolic")
|
||||
|
|
|
@ -8,7 +8,6 @@ class TestEmmental(unittest.TestCase):
|
|||
def test_import_curds(self):
|
||||
self.assertEqual(curds.Album, curds.tags.Album)
|
||||
self.assertEqual(curds.DataFile, curds.data.DataFile)
|
||||
self.assertEqual(curds.GenrePlaylist, curds.playlist.genre.GenrePlaylist)
|
||||
self.assertEqual(curds.LibraryPlaylist, curds.playlist.library.LibraryPlaylist)
|
||||
self.assertEqual(curds.Playlist, curds.playlist.playlist.Playlist)
|
||||
self.assertEqual(curds.PlaylistNode, curds.playlist.node.PlaylistNode)
|
||||
|
|
Loading…
Reference in New Issue