Enhancement: ignore same files in sanity checker as consumer (#10999)

This commit is contained in:
shamoon
2025-10-06 09:59:01 -07:00
committed by GitHub
parent d609b386fe
commit 79b30fbade
3 changed files with 23 additions and 2 deletions

View File

@@ -169,6 +169,13 @@ class TestSanityCheck(DirectoriesMixin, TestCase):
messages = check_sanity()
self.assertFalse(messages.has_warning)
def test_ignore_ignorable_files(self):
self.make_test_data()
Path(self.dirs.media_dir, ".DS_Store").touch()
Path(self.dirs.media_dir, "desktop.ini").touch()
messages = check_sanity()
self.assertFalse(messages.has_warning)
def test_archive_filename_no_checksum(self):
doc = self.make_test_data()
doc.archive_checksum = None