@@ -325,6 +325,7 @@ def test_remove_item(self):
325
325
def test_remove_album (self ):
326
326
album = self .add_external_album ("myexternal" )
327
327
item = album .items ().get ()
328
+ assert item
328
329
old_path = self .get_path (item )
329
330
assert old_path .is_file ()
330
331
@@ -377,6 +378,7 @@ def touch_art(item: Item, image_path: Path):
377
378
self .runcli ("alt" , "update" , "myexternal" )
378
379
379
380
item = album .items ().get ()
381
+ assert item
380
382
assert_has_not_embedded_artwork (self .get_path (item ))
381
383
382
384
# 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):
391
393
self .runcli ("alt" , "update" , "myexternal" )
392
394
393
395
item = album .items ().get ()
396
+ assert item
394
397
assert_has_embedded_artwork (self .get_path (item ), self .IMAGE_FIXTURE1 )
395
398
396
399
# 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):
401
404
self .runcli ("alt" , "update" , "myexternal" )
402
405
403
406
item = album .items ().get ()
407
+ assert item
404
408
assert_has_embedded_artwork (self .get_path (item ), self .IMAGE_FIXTURE2 )
405
409
406
410
# now set a maxwidth and verify the final image has the right
@@ -488,6 +492,7 @@ def test_convert_and_embed(self):
488
492
489
493
self .runcli ("alt" , "update" , "myexternal" )
490
494
item = album .items ().get ()
495
+ assert item
491
496
assert_has_embedded_artwork (self .get_path (item ))
492
497
493
498
def test_convert_write_tags (self ):
0 commit comments