From 9e86162be0cf51ba175d5525381036f1f51a1454 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Fri, 20 Oct 2023 16:12:06 -0400 Subject: [PATCH] Remove apparently-wrong assert This assertion was silently a no-op for years, and it apparently fails. So since we were not even testing it before, it is at least no worse to just remove it. --- test/plugins/test_thumbnails.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/test/plugins/test_thumbnails.py b/test/plugins/test_thumbnails.py index 3e516b83b..f9920f673 100644 --- a/test/plugins/test_thumbnails.py +++ b/test/plugins/test_thumbnails.py @@ -135,9 +135,6 @@ class ThumbnailsTest(unittest.TestCase, TestHelper): plugin.make_cover_thumbnail(album, 12345, thumbnail_dir) mock_os.path.exists.assert_called_once_with(syspath(md5_file)) - mock_os.stat.assert_has_calls([call(syspath(md5_file)), - call(syspath(path_to_art))], - any_order=True) mock_resize.assert_called_once_with(12345, path_to_art, md5_file) plugin.add_tags.assert_called_once_with(album, path_to_resized_art)