From 17998f6644a6340f7d860b299cc95f5a815955e1 Mon Sep 17 00:00:00 2001 From: blissful Date: Sat, 20 Apr 2024 17:40:54 -0400 Subject: [PATCH] fix tests --- rose/playlists_test.py | 14 ++++++++++++++ rose/tracks_test.py | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) diff --git a/rose/playlists_test.py b/rose/playlists_test.py index 9b82562..73e5b22 100644 --- a/rose/playlists_test.py +++ b/rose/playlists_test.py @@ -162,6 +162,12 @@ def test_dump_playlist(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -204,6 +210,7 @@ def test_dump_playlist(config: Config) -> None: "catalognumber": "DG-001", "new": False, "genres": ["Classical"], + "parent_genres": [], "labels": ["Native State"], "releaseartists": { "main": [{"name": "Violin Woman", "alias": False}], @@ -258,6 +265,12 @@ def test_dump_playlists(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -300,6 +313,7 @@ def test_dump_playlists(config: Config) -> None: "catalognumber": "DG-001", "new": False, "genres": ["Classical"], + "parent_genres": [], "labels": ["Native State"], "releaseartists": { "main": [{"name": "Violin Woman", "alias": False}], diff --git a/rose/tracks_test.py b/rose/tracks_test.py index 157da8e..90ef418 100644 --- a/rose/tracks_test.py +++ b/rose/tracks_test.py @@ -51,6 +51,12 @@ def test_dump_tracks(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -95,6 +101,12 @@ def test_dump_tracks(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -136,6 +148,7 @@ def test_dump_tracks(config: Config) -> None: "catalognumber": "DG-001", "new": False, "genres": ["Classical"], + "parent_genres": [], "labels": ["Native State"], "releaseartists": { "main": [{"name": "Violin Woman", "alias": False}], @@ -174,6 +187,7 @@ def test_dump_tracks(config: Config) -> None: "catalognumber": "DG-002", "new": True, "genres": [], + "parent_genres": [], "labels": [], "releaseartists": { "main": [], @@ -222,6 +236,12 @@ def test_dump_tracks_with_matcher(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -266,6 +286,12 @@ def test_dump_tracks_with_matcher(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [ @@ -315,6 +341,12 @@ def test_dump_track(config: Config) -> None: "catalognumber": None, "new": False, "genres": ["Techno", "Deep House"], + "parent_genres": [ + "Dance", + "Electronic", + "Electronic Dance Music", + "House", + ], "labels": ["Silk Music"], "releaseartists": { "main": [