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:
Trenton Holmes 2022-06-01 07:44:48 -07:00 committed by GitHub
parent 277b521fad
commit 9335b0779c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()