mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-20 21:47:01 +01:00
Enhancement: ignore same files in sanity checker as consumer (#10999)
This commit is contained in:
parent
d609b386fe
commit
79b30fbade
3 changed files with 23 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue