curds: Remove newline from PlaylistNode
I'm going to take a different approach with setting the row heights directly, so start by removing the newline here. Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
parent
a767cc08b8
commit
14851e0c59
|
@ -33,7 +33,7 @@ class PlaylistNode:
|
|||
return name.title()
|
||||
|
||||
def __str__(self):
|
||||
return f"<small>\n</small><big>{self.name}</big>"
|
||||
return f"<big>{self.name}</big>"
|
||||
|
||||
def append_child(self, child):
|
||||
return self.__insert_node__(child, len(self.children))
|
||||
|
|
|
@ -18,7 +18,7 @@ class TestPlaylistNode(unittest.TestCase):
|
|||
n = node.PlaylistNode("test node", "test-icon")
|
||||
self.assertEqual(n.icon, "test-icon")
|
||||
self.assertEqual(n.name, "Test Node")
|
||||
self.assertEqual(str(n), "<small>\n</small><big>Test Node</big>")
|
||||
self.assertEqual(str(n), "<big>Test Node</big>")
|
||||
|
||||
def test_node_less_than(self):
|
||||
a = node.PlaylistNode("a")
|
||||
|
|
Loading…
Reference in New Issue