Skip to content

Commit

Permalink
fix test files inconsistent tags
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 18, 2023
1 parent 9c38ea5 commit 862082b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions rose/collages_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"}
Expand All @@ -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"}
Expand All @@ -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
Expand Down
Binary file modified testdata/cache/Test Release 1/01.m4a
Binary file not shown.
Binary file modified testdata/cache/Test Release 2/01.m4a
Binary file not shown.
Binary file modified testdata/cache/Test Release 3/01.m4a
Binary file not shown.
Binary file modified testdata/cache/Test Release 3/02.m4a
Binary file not shown.

0 comments on commit 862082b

Please sign in to comment.