mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fixes formatting
This commit is contained in:
parent
9335b0779c
commit
0b6e73840a
@ -137,7 +137,7 @@ def check_sanity(progress=False) -> SanityCheckMessages:
|
||||
|
||||
# other document checks
|
||||
if not doc.content:
|
||||
messages.info(doc.pk, "Document has no content.")
|
||||
messages.info(doc.pk, "Document contains no OCR data")
|
||||
|
||||
for extra_file in present_files:
|
||||
messages.warning(None, f"Orphaned file in media dir: {extra_file}")
|
||||
|
@ -143,7 +143,10 @@ class TestSanityCheck(DirectoriesMixin, TestCase):
|
||||
self.assertFalse(messages.has_error)
|
||||
self.assertFalse(messages.has_warning)
|
||||
self.assertEqual(len(messages), 1)
|
||||
self.assertRegex(messages[doc.pk][0]["message"], "Document contains no OCR data.")
|
||||
self.assertRegex(
|
||||
messages[doc.pk][0]["message"],
|
||||
"Document contains no OCR data",
|
||||
)
|
||||
|
||||
def test_orphaned_file(self):
|
||||
doc = self.make_test_data()
|
||||
|
Loading…
x
Reference in New Issue
Block a user