Skip to content

Commit

Permalink
updated to pass pep8 checks
Browse files Browse the repository at this point in the history
  • Loading branch information
konman2 committed Oct 8, 2017
1 parent fdeef05 commit 578143a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions beetsplug/embedart.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ def extract_func(lib, opts, args):
clear_cmd.parser.add_option(
u"-y", u"--yes", action="store_true", help=u"skip confirmation"
)

def clear_func(lib, opts, args):
items = lib.items(decargs(args))
# Confirm with user.
Expand Down
4 changes: 1 addition & 3 deletions test/test_embedart.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,8 @@ def test_clear_art_with_yes_input(self):
self.io.addinput('y')
self.run_command('clearart')
mediafile = MediaFile(syspath(item.path))
#print(mediafile.images[0].data == self.image_data)
self.assertEqual(len(mediafile.images), 0)

def test_clear_art_with_no_input(self):
self._setup_data()
album = self.add_album_fixture()
Expand All @@ -216,7 +215,6 @@ def test_clear_art_with_no_input(self):
self.io.addinput('n')
self.run_command('clearart')
mediafile = MediaFile(syspath(item.path))
#print(mediafile.images[0].data == self.image_data)
self.assertEqual(mediafile.images[0].data, self.image_data)


Expand Down

0 comments on commit 578143a

Please sign in to comment.