curds: Remove GenrePlaylist

It is now unused

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2019-04-19 11:24:32 -04:00
parent bfe7e3550b
commit b2dc1b8c5e
4 changed files with 1 additions and 16 deletions

View File

@ -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

View File

@ -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")

View File

@ -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")

View File

@ -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)