mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Update no content warning to be more clear it is missing OCR content
Co-authored-by: tooomm <tooomm@users.noreply.github.com>
This commit is contained in:
parent
277b521fad
commit
9335b0779c
@ -143,7 +143,7 @@ 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 has no content.")
|
||||
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