Skip to content

Commit

Permalink
fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
azuline committed Oct 9, 2024
1 parent f1a7bfa commit 1c6f860
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions rose-py/rose/cache_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,13 +744,11 @@ def test_update_cache_releases_updates_full_text_search(config: Config) -> None:
SELECT rowid, * FROM rules_engine_fts
"""
)
print([dict(x) for x in cursor])
cursor = conn.execute(
"""
SELECT rowid, * FROM tracks
"""
)
print([dict(x) for x in cursor])
with connect(config) as conn:
cursor = conn.execute(
"""
Expand Down Expand Up @@ -965,7 +963,6 @@ def test_update_releases_updates_collages_description_meta(config: Config, multi
update_cache(config)
with cpath.open("r") as fp:
cfg = fp.read()
print(cfg)
assert (
cfg
== """\
Expand Down Expand Up @@ -995,7 +992,6 @@ def test_update_releases_updates_collages_description_meta(config: Config, multi
update_cache_for_releases(config, force=True, force_multiprocessing=multiprocessing)
with cpath.open("r") as fp:
cfg = fp.read()
print(cfg)
assert (
cfg
== """\
Expand All @@ -1018,7 +1014,6 @@ def test_update_tracks_updates_playlists_description_meta(config: Config, multip
update_cache(config)
with ppath.open("r") as fp:
cfg = fp.read()
print(cfg)
assert (
cfg
== """\
Expand Down Expand Up @@ -1048,7 +1043,6 @@ def test_update_tracks_updates_playlists_description_meta(config: Config, multip
update_cache_for_releases(config, force=True, force_multiprocessing=multiprocessing)
with ppath.open("r") as fp:
cfg = fp.read()
print(cfg)
assert (
cfg
== """\
Expand Down
2 changes: 1 addition & 1 deletion rose-py/rose/playlists_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def editfn(x: str) -> str:
monkeypatch.setattr("rose.playlists.click.edit", editfn)
edit_playlist_in_editor(config, "You & Me")

assert seen == "\n".join([f"BLACKPINK - Track 1 [{tid}]" for tid in track_ids])
assert seen == "\n".join([f"[1990-02-05] BLACKPINK - Track 1 [{tid}]" for tid in track_ids])

with (config.music_source_dir / "!playlists" / "You & Me.toml").open("rb") as fp:
data = tomllib.load(fp)
Expand Down

0 comments on commit 1c6f860

Please sign in to comment.