mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-16 11:36:39 +01:00
Refines the sanity check header, fixes other test issues
This commit is contained in:
parent
0a34a4a7ad
commit
be304e37b4
4 changed files with 11 additions and 7 deletions
|
|
@ -63,9 +63,9 @@ class TestSanityCheck(DirectoriesMixin, TestCase):
|
|||
self.assertTrue(messages.has_error)
|
||||
with self.assertLogs() as capture:
|
||||
messages.log_messages()
|
||||
self.assertRegex(
|
||||
self.assertEqual(
|
||||
capture.records[0].message,
|
||||
f"Document: {doc.pk}, title: {doc.title}",
|
||||
f"Detected following issue(s) with document #{doc.pk}, titled {doc.title}",
|
||||
)
|
||||
self.assertRegex(capture.records[1].message, messageRegex)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue