Skip to content

Commit

Permalink
Merge pull request #120 from geigerzaehler/fix-beets-master-type-changes
Browse files Browse the repository at this point in the history
Update type hints to comply with changes made in beets’ master branch
  • Loading branch information
geigerzaehler authored Jan 10, 2025
2 parents b5a0a70 + ee3fcc7 commit c37df6d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def test_remove_item(self):
def test_remove_album(self):
album = self.add_external_album("myexternal")
item = album.items().get()
assert item
old_path = self.get_path(item)
assert old_path.is_file()

Expand Down Expand Up @@ -377,6 +378,7 @@ def touch_art(item: Item, image_path: Path):
self.runcli("alt", "update", "myexternal")

item = album.items().get()
assert item
assert_has_not_embedded_artwork(self.get_path(item))

# Make a copy of the artwork, so that changing mtime/content won't
Expand All @@ -391,6 +393,7 @@ def touch_art(item: Item, image_path: Path):
self.runcli("alt", "update", "myexternal")

item = album.items().get()
assert item
assert_has_embedded_artwork(self.get_path(item), self.IMAGE_FIXTURE1)

# Change content and update mtime, but do not change the item/album in
Expand All @@ -401,6 +404,7 @@ def touch_art(item: Item, image_path: Path):
self.runcli("alt", "update", "myexternal")

item = album.items().get()
assert item
assert_has_embedded_artwork(self.get_path(item), self.IMAGE_FIXTURE2)

# now set a maxwidth and verify the final image has the right
Expand Down Expand Up @@ -488,6 +492,7 @@ def test_convert_and_embed(self):

self.runcli("alt", "update", "myexternal")
item = album.items().get()
assert item
assert_has_embedded_artwork(self.get_path(item))

def test_convert_write_tags(self):
Expand Down

0 comments on commit c37df6d

Please sign in to comment.