PEP8 fixes

This commit is contained in:
Philipp Wolfer
2019-03-27 15:18:38 +01:00
parent 3b3980adb0
commit a1313bef84
2 changed files with 5 additions and 6 deletions

View File

@@ -183,7 +183,6 @@ class CommonTests:
value = metadata.length if key == 'length' else metadata[key]
self.assertEqual(value, expected_value)
class TagFormatsTest(SimpleFormatsTest):
def setUp(self):
@@ -194,7 +193,7 @@ class CommonTests:
def setup_tags(self):
if self.testfile:
supports_tag = ext_to_format(self.testfile_ext[1:]).supports_tag
self.unsupported_tags = {tag : val for tag, val in self.tags.items() if not supports_tag(tag)}
self.unsupported_tags = {tag: val for tag, val in self.tags.items() if not supports_tag(tag)}
self.remove_tags(self.unsupported_tags.keys())
def set_tags(self, dict_tag_value=None):

View File

@@ -69,9 +69,9 @@ class TestCoverArt(PicardTestCase):
)
tmp_file = coverartimage.tempfile_filename
tmp_files.append(tmp_file)
l = os.path.getsize(tmp_file)
filesize = os.path.getsize(tmp_file)
# ensure file was written, and check its length
self.assertEqual(l, len(imgdata2))
self.assertEqual(filesize, len(imgdata2))
self.assertEqual(coverartimage.data, imgdata2)
# set data again, with another payload
@@ -79,9 +79,9 @@ class TestCoverArt(PicardTestCase):
tmp_file = coverartimage.tempfile_filename
tmp_files.append(tmp_file)
l = os.path.getsize(tmp_file)
filesize = os.path.getsize(tmp_file)
# check file length again
self.assertEqual(l, len(imgdata))
self.assertEqual(filesize, len(imgdata))
self.assertEqual(coverartimage.data, imgdata)
QtCore.QObject.tagger.run_cleanup()