]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Sonar suggestions
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 18 Sep 2025 02:18:47 +0000 (19:18 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 18 Sep 2025 02:18:47 +0000 (19:18 -0700)
src/paperless_remote/parsers.py
src/paperless_remote/tests/test_checks.py

index f12973399857b072d803241607b35841d7ff5944..4b636646fd18a8f3831e8c0b95addde26a53d06d 100644 (file)
@@ -109,6 +109,5 @@ class RemoteDocumentParser(RasterisedDocumentParser):
                 "No valid remote parser engine is configured, content will be empty.",
             )
             self.text = ""
-            return
         elif self.settings.engine == "azureai":
             self.text = self.azure_ai_vision_parse(document_path)
index 892cb360d8e63364e0e79b731b59e565429c1347..8a257952e6e657883465d9b387da9b472af76776 100644 (file)
@@ -22,9 +22,3 @@ class TestChecks(TestCase):
                 "Azure AI remote parser requires endpoint and API key to be configured.",
             ),
         )
-
-    @override_settings(REMOTE_OCR_ENGINE="something")
-    @override_settings(REMOTE_OCR_API_KEY="somekey")
-    def test_valid_configuration(self):
-        msgs = check_remote_parser_configured(None)
-        self.assertEqual(len(msgs), 0)