Skip to content

Commit

Permalink
Merge pull request #4593 from wisp3rwind/pr_fix_mediafile_tests
Browse files Browse the repository at this point in the history
tests: fix assertions for empty MediaFile.images
  • Loading branch information
wisp3rwind authored Dec 18, 2022
2 parents d7273bd + d5f998b commit 195ef6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/test_embedart.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_embed_art_from_file_with_no_input(self):
self.run_command('embedart', '-f', self.small_artpath)
mediafile = MediaFile(syspath(item.path))
# make sure that images array is empty (nothing embedded)
self.assertEqual(len(mediafile.images), 0)
self.assertFalse(mediafile.images)

def test_embed_art_from_file(self):
self._setup_data()
Expand Down Expand Up @@ -203,7 +203,7 @@ def test_clear_art_with_yes_input(self):
self.io.addinput('y')
self.run_command('clearart')
mediafile = MediaFile(syspath(item.path))
self.assertEqual(len(mediafile.images), 0)
self.assertFalse(mediafile.images)

def test_clear_art_with_no_input(self):
self._setup_data()
Expand Down
2 changes: 1 addition & 1 deletion test/test_zero.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def test_album_art(self):
item.write()

mf = MediaFile(syspath(path))
self.assertEqual(0, len(mf.images))
self.assertFalse(mf.images)

def test_auto_false(self):
self.config['zero']['fields'] = ['year']
Expand Down

0 comments on commit 195ef6c

Please sign in to comment.