Skip to content

Commit c37df6d

Browse files
Merge pull request #120 from geigerzaehler/fix-beets-master-type-changes
Update type hints to comply with changes made in beets’ master branch
2 parents b5a0a70 + ee3fcc7 commit c37df6d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cli_test.py

+5
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ def test_remove_item(self):
325325
def test_remove_album(self):
326326
album = self.add_external_album("myexternal")
327327
item = album.items().get()
328+
assert item
328329
old_path = self.get_path(item)
329330
assert old_path.is_file()
330331

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

379380
item = album.items().get()
381+
assert item
380382
assert_has_not_embedded_artwork(self.get_path(item))
381383

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

393395
item = album.items().get()
396+
assert item
394397
assert_has_embedded_artwork(self.get_path(item), self.IMAGE_FIXTURE1)
395398

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

403406
item = album.items().get()
407+
assert item
404408
assert_has_embedded_artwork(self.get_path(item), self.IMAGE_FIXTURE2)
405409

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

489493
self.runcli("alt", "update", "myexternal")
490494
item = album.items().get()
495+
assert item
491496
assert_has_embedded_artwork(self.get_path(item))
492497

493498
def test_convert_write_tags(self):

0 commit comments

Comments
 (0)