From 8dc960b1f6d78d4f8ee9fc59f8bad398b1d642f2 Mon Sep 17 00:00:00 2001 From: Bert Besser Date: Fri, 14 May 2021 10:19:59 +0200 Subject: [PATCH] fix: formatting --- test/test_importer.py | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/test/test_importer.py b/test/test_importer.py index e581f282a..16881a152 100644 --- a/test/test_importer.py +++ b/test/test_importer.py @@ -744,6 +744,7 @@ class ImportTest(_common.TestCase, ImportHelper): config['import']['set_fields'] = { u'genre': genre, + u'collection': collection, u'comments': comments } @@ -757,8 +758,15 @@ class ImportTest(_common.TestCase, ImportHelper): self.assertEqual(album.genre, genre) self.assertEqual(album.comments, comments) for item in album.items(): - self.assertEqual(item.get("genre", with_album=False), genre) - self.assertEqual(item.get("comments", with_album=False), comments) + self.assertEqual( + item.get("genre", with_album=False), + genre) + self.assertEqual( + item.get("collection", with_album=False), + collection) + self.assertEqual( + item.get("comments", with_album=False), + comments) # Remove album from library to test again with APPLY choice. album.remove() @@ -773,8 +781,15 @@ class ImportTest(_common.TestCase, ImportHelper): self.assertEqual(album.genre, genre) self.assertEqual(album.comments, comments) for item in album.items(): - self.assertEqual(item.get("genre", with_album=False), genre) - self.assertEqual(item.get("comments", with_album=False), comments) + self.assertEqual( + item.get("genre", with_album=False), + genre) + self.assertEqual( + item.get("collection", with_album=False), + collection) + self.assertEqual( + item.get("comments", with_album=False), + comments) class ImportTracksTest(_common.TestCase, ImportHelper):