Chore: Disables the system checks for management commands in tests and when unnecessary (#12332)

This commit is contained in:
Trenton H authored and GitHub committed 2026-03-16 15:10:35 +00:00
1 parent 866c9fd858
commit 1caa3eb8aa
11 files changed
+179 -50

No files matched your search

+1 -1
View File
@@ -1665,7 +1665,7 @@ class TestManagementCommand(TestCase):
"paperless_mail.management.commands.mail_fetcher.tasks.process_mail_accounts",
)
def test_mail_fetcher(self, m) -> None:
call_command("mail_fetcher")
call_command("mail_fetcher", skip_checks=True)
m.assert_called_once()