diff --git a/rose/collages_test.py b/rose/collages_test.py index 56ad0a7..d038747 100644 --- a/rose/collages_test.py +++ b/rose/collages_test.py @@ -66,9 +66,7 @@ def test_collage_lifecycle(config: Config) -> None: # Add one release. add_release_to_collage( - config, - "Rose Gold", - "Carly Rae Jepsen - 1990. I Love Carly [Pop;Dream Pop] {A Cool Label}", + config, "Rose Gold", "Carly Rae Jepsen - 1990. I Love Carly [Pop;Dream Pop] {A Cool Label}" ) with filepath.open("rb") as fp: diskdata = tomllib.load(fp) @@ -80,7 +78,9 @@ def test_collage_lifecycle(config: Config) -> None: assert {r["release_id"] for r in cursor} == {"ilovecarly"} # Add another release. - add_release_to_collage(config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B]") + add_release_to_collage( + config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B] {A Cool Label}" + ) with (config.music_source_dir / "!collages" / "Rose Gold.toml").open("rb") as fp: diskdata = tomllib.load(fp) assert {r["uuid"] for r in diskdata["releases"]} == {"ilovecarly", "ilovenewjeans"} @@ -91,7 +91,9 @@ def test_collage_lifecycle(config: Config) -> None: assert {r["release_id"] for r in cursor} == {"ilovecarly", "ilovenewjeans"} # Delete one release. - delete_release_from_collage(config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B]") + delete_release_from_collage( + config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B] {A Cool Label}" + ) with filepath.open("rb") as fp: diskdata = tomllib.load(fp) assert {r["uuid"] for r in diskdata["releases"]} == {"ilovecarly"} @@ -113,8 +115,12 @@ def test_collage_add_duplicate(config: Config) -> None: shutil.copytree(TEST_RELEASE_3, config.music_source_dir / TEST_RELEASE_3.name) update_cache(config) create_collage(config, "Rose Gold") - add_release_to_collage(config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B]") - add_release_to_collage(config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B]") + add_release_to_collage( + config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B] {A Cool Label}" + ) + add_release_to_collage( + config, "Rose Gold", "NewJeans - 1990. I Love NewJeans [K-Pop;R&B] {A Cool Label}" + ) with (config.music_source_dir / "!collages" / "Rose Gold.toml").open("rb") as fp: diskdata = tomllib.load(fp) assert len(diskdata["releases"]) == 1 diff --git a/testdata/cache/Test Release 1/01.m4a b/testdata/cache/Test Release 1/01.m4a index fc4974b..76f0192 100644 Binary files a/testdata/cache/Test Release 1/01.m4a and b/testdata/cache/Test Release 1/01.m4a differ diff --git a/testdata/cache/Test Release 2/01.m4a b/testdata/cache/Test Release 2/01.m4a index dbe251c..cd8daea 100644 Binary files a/testdata/cache/Test Release 2/01.m4a and b/testdata/cache/Test Release 2/01.m4a differ diff --git a/testdata/cache/Test Release 3/01.m4a b/testdata/cache/Test Release 3/01.m4a index 535ed59..e919ea5 100644 Binary files a/testdata/cache/Test Release 3/01.m4a and b/testdata/cache/Test Release 3/01.m4a differ diff --git a/testdata/cache/Test Release 3/02.m4a b/testdata/cache/Test Release 3/02.m4a index b503f3e..d0ef0e3 100644 Binary files a/testdata/cache/Test Release 3/02.m4a and b/testdata/cache/Test Release 3/02.m4a differ