Skip to content

Commit

Permalink
Experimental: Debug failing test_a_albumartist_edit_apply
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Jul 14, 2023
1 parent 85fa465 commit 049bd06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_edit.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,15 @@ def assertItemFieldsModified(self, library_items, items, fields=[], # noqa
(they may or may not have changed; the assertion doesn't care).
"""
for lib_item, item in zip(library_items, items):
print("lib_item.albumartist:", lib_item.albumartist)
print("item.albumartist:", item['albumartist'])
#import pprint

Check failure on line 87 in test/test_edit.py

View workflow job for this annotation

GitHub Actions / lint

E265 block comment should start with '# '
#pprint.pprint(item)

Check failure on line 88 in test/test_edit.py

View workflow job for this annotation

GitHub Actions / lint

E265 block comment should start with '# '
diff_fields = [field for field in lib_item._fields
if lib_item[field] != item[field]]
print("diff_fields:", diff_fields)
print("First set:", set(diff_fields).difference(allowed))
print("Second set:", set(fields))
self.assertEqual(set(diff_fields).difference(allowed),
set(fields))

Expand Down

0 comments on commit 049bd06

Please sign in to comment.