mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-15 11:07:00 +01:00
Sonar suggestions
This commit is contained in:
parent
809d62a2f4
commit
8a5820328e
2 changed files with 0 additions and 7 deletions
|
|
@ -109,6 +109,5 @@ class RemoteDocumentParser(RasterisedDocumentParser):
|
||||||
"No valid remote parser engine is configured, content will be empty.",
|
"No valid remote parser engine is configured, content will be empty.",
|
||||||
)
|
)
|
||||||
self.text = ""
|
self.text = ""
|
||||||
return
|
|
||||||
elif self.settings.engine == "azureai":
|
elif self.settings.engine == "azureai":
|
||||||
self.text = self.azure_ai_vision_parse(document_path)
|
self.text = self.azure_ai_vision_parse(document_path)
|
||||||
|
|
|
||||||
|
|
@ -22,9 +22,3 @@ class TestChecks(TestCase):
|
||||||
"Azure AI remote parser requires endpoint and API key to be configured.",
|
"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)
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue