From 6582a3d9025f0de2073ee15e43dbaf4f640fcbfd Mon Sep 17 00:00:00 2001 From: blissful Date: Sun, 5 May 2024 23:57:36 -0400 Subject: [PATCH] snapshottest the new fns --- rose_cli/dump.py | 24 +- rose_cli/dump_test.py | 48 + rose_cli/snapshots/snap_dump_test.py | 1628 ++++++++++++++++++++++++++ 3 files changed, 1691 insertions(+), 9 deletions(-) diff --git a/rose_cli/dump.py b/rose_cli/dump.py index 3af5cbe..f20aa70 100644 --- a/rose_cli/dump.py +++ b/rose_cli/dump.py @@ -188,10 +188,12 @@ def dump_genre(c: Config, genre_name: str) -> str: def dump_all_genres(c: Config) -> str: out: list[dict[str, Any]] = [] - for name in list_genres(c): - genre_releases = list_releases_delete_this(c, genre_filter=name.genre) + for e in list_genres(c): + genre_releases = list_releases_delete_this(c, genre_filter=e.genre) releases = [release_to_json(r) for r in genre_releases] - out.append({"name": name, "releases": releases}) + out.append( + {"name": e.genre, "only_new_releases": e.only_new_releases, "releases": releases} + ) return json.dumps(out) @@ -205,10 +207,12 @@ def dump_label(c: Config, label_name: str) -> str: def dump_all_labels(c: Config) -> str: out: list[dict[str, Any]] = [] - for name in list_labels(c): - label_releases = list_releases_delete_this(c, label_filter=name.label) + for e in list_labels(c): + label_releases = list_releases_delete_this(c, label_filter=e.label) releases = [release_to_json(r) for r in label_releases] - out.append({"name": name, "releases": releases}) + out.append( + {"name": e.label, "only_new_releases": e.only_new_releases, "releases": releases} + ) return json.dumps(out) @@ -222,10 +226,12 @@ def dump_descriptor(c: Config, descriptor_name: str) -> str: def dump_all_descriptors(c: Config) -> str: out: list[dict[str, Any]] = [] - for name in list_descriptors(c): - descriptor_releases = list_releases_delete_this(c, descriptor_filter=name.descriptor) + for e in list_descriptors(c): + descriptor_releases = list_releases_delete_this(c, descriptor_filter=e.descriptor) releases = [release_to_json(r) for r in descriptor_releases] - out.append({"name": name, "releases": releases}) + out.append( + {"name": e.descriptor, "only_new_releases": e.only_new_releases, "releases": releases} + ) return json.dumps(out) diff --git a/rose_cli/dump_test.py b/rose_cli/dump_test.py index 6579da2..cb9ab91 100644 --- a/rose_cli/dump_test.py +++ b/rose_cli/dump_test.py @@ -5,11 +5,19 @@ from rose import Config, MetadataMatcher from rose_cli.dump import ( + dump_all_artists, dump_all_collages, + dump_all_descriptors, + dump_all_genres, + dump_all_labels, dump_all_playlists, dump_all_releases, dump_all_tracks, + dump_artist, dump_collage, + dump_descriptor, + dump_genre, + dump_label, dump_playlist, dump_release, dump_track, @@ -48,6 +56,46 @@ def test_dump_track(config: Config, snapshot: Any) -> None: snapshot.assert_match(json.loads(dump_track(config, "t1"))) +@pytest.mark.usefixtures("static_cache") +def test_dump_artist(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_artist(config, "Bass Man"))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_artists(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_all_artists(config))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_genre(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_genre(config, "Deep House"))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_genres(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_all_genres(config))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_label(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_label(config, "Silk Music"))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_labels(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_all_labels(config))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_descriptor(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_descriptor(config, "Warm"))) + + +@pytest.mark.usefixtures("static_cache") +def test_dump_descriptors(config: Config, snapshot: Any) -> None: + snapshot.assert_match(json.loads(dump_all_descriptors(config))) + + @pytest.mark.usefixtures("static_cache") def test_dump_collage(config: Config, snapshot: Any) -> None: snapshot.assert_match(json.loads(dump_collage(config, "Rose Gold"))) diff --git a/rose_cli/snapshots/snap_dump_test.py b/rose_cli/snapshots/snap_dump_test.py index 806a093..321d6cf 100644 --- a/rose_cli/snapshots/snap_dump_test.py +++ b/rose_cli/snapshots/snap_dump_test.py @@ -7,6 +7,424 @@ snapshots = Snapshot() +snapshots['test_dump_artist 1'] = { + 'name': 'Bass Man', + 'roles': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + } +} + +snapshots['test_dump_artists 1'] = [ + { + 'name': 'Bass Man', + 'roles': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + } + }, + { + 'name': 'Conductor Woman', + 'roles': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ], + 'main': [ + ], + 'producer': [ + ], + 'remixer': [ + ] + } + }, + { + 'name': 'Techno Man', + 'roles': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + } + }, + { + 'name': 'Violin Woman', + 'roles': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + } + } +] + snapshots['test_dump_collage 1'] = { 'name': 'Rose Gold', 'releases': [ @@ -282,6 +700,1216 @@ } ] +snapshots['test_dump_descriptor 1'] = { + 'name': 'Warm', + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] +} + +snapshots['test_dump_descriptors 1'] = [ + { + 'name': 'Hot', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Warm', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Wet', + 'only_new_releases': True, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ] + } +] + +snapshots['test_dump_genre 1'] = { + 'name': 'Deep House', + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] +} + +snapshots['test_dump_genres 1'] = [ + { + 'name': 'Deep House', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Dance', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Electronic', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Electronic Dance Music', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'House', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + }, + { + 'name': 'Modern Classical', + 'only_new_releases': True, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ] + }, + { + 'name': 'Classical Music', + 'only_new_releases': True, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ] + }, + { + 'name': 'Western Classical Music', + 'only_new_releases': True, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ] + }, + { + 'name': 'Techno', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + } +] + +snapshots['test_dump_label 1'] = { + 'name': 'Silk Music', + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] +} + +snapshots['test_dump_labels 1'] = [ + { + 'name': 'Native State', + 'only_new_releases': True, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': 'DG-001', + 'compositiondate': None, + 'cover_image_path': '/dummy/r2/cover.jpg', + 'descriptors': [ + 'Wet' + ], + 'disctotal': 1, + 'edition': 'Deluxe', + 'genres': [ + 'Modern Classical' + ], + 'id': 'r2', + 'labels': [ + 'Native State' + ], + 'new': True, + 'originaldate': '2019', + 'parent_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'parent_secondary_genres': [ + 'Classical Music', + 'Western Classical Music' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + { + 'alias': False, + 'name': 'Conductor Woman' + } + ], + 'main': [ + { + 'alias': False, + 'name': 'Violin Woman' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2021', + 'releasetitle': 'Release 2', + 'releasetype': 'album', + 'secondary_genres': [ + 'Orchestral' + ], + 'source_path': '/dummy/r2' + } + ] + }, + { + 'name': 'Silk Music', + 'only_new_releases': False, + 'releases': [ + { + 'added_at': '0000-01-01T00:00:00+00:00', + 'catalognumber': None, + 'compositiondate': None, + 'cover_image_path': None, + 'descriptors': [ + 'Warm', + 'Hot' + ], + 'disctotal': 1, + 'edition': None, + 'genres': [ + 'Techno', + 'Deep House' + ], + 'id': 'r1', + 'labels': [ + 'Silk Music' + ], + 'new': False, + 'originaldate': None, + 'parent_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House' + ], + 'parent_secondary_genres': [ + 'Dance', + 'Electronic', + 'Electronic Dance Music', + 'House', + 'Tech House' + ], + 'releaseartists': { + 'composer': [ + ], + 'conductor': [ + ], + 'djmixer': [ + ], + 'guest': [ + ], + 'main': [ + { + 'alias': False, + 'name': 'Techno Man' + }, + { + 'alias': False, + 'name': 'Bass Man' + } + ], + 'producer': [ + ], + 'remixer': [ + ] + }, + 'releasedate': '2023', + 'releasetitle': 'Release 1', + 'releasetype': 'album', + 'secondary_genres': [ + 'Rominimal', + 'Ambient' + ], + 'source_path': '/dummy/r1' + } + ] + } +] + snapshots['test_dump_playlist 1'] = { 'cover_image_path': '/dummy/!playlists/Lala Lisa.jpg', 'name': 'Lala Lisa',