]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Use regular testcase instead of django, config check test
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 11 Sep 2025 20:52:10 +0000 (13:52 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 11 Sep 2025 20:52:10 +0000 (13:52 -0700)
src/paperless_remote/tests/test_checks.py

index ac65da27fd3b28d3c38ac16b299e8a2342e90032..892cb360d8e63364e0e79b731b59e565429c1347 100644 (file)
@@ -1,4 +1,5 @@
-from django.test import TestCase
+from unittest import TestCase
+
 from django.test import override_settings
 
 from paperless_remote import check_remote_parser_configured
@@ -18,7 +19,7 @@ class TestChecks(TestCase):
         self.assertEqual(len(msgs), 1)
         self.assertTrue(
             msgs[0].msg.startswith(
-                "Azure AI remote parser requires endpoint to be configured.",
+                "Azure AI remote parser requires endpoint and API key to be configured.",
             ),
         )