A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Ignores coverage data in the error cases
Trenton H46a39190a40c
diff --git a/src/documents/tests/utils.py b/src/documents/tests/utils.pyindex 815a5d0b6..2eced0c4f 100644--- a/src/documents/tests/utils.py+++ b/src/documents/tests/utils.py@@ -119,7 +119,7 @@ def util_call_with_backoff(result = method_or_callable(*args)succeeded = True- except ParseError as e:+ except ParseError as e: # pragma: no covercause_exec = e.__cause__if cause_exec is not None and isinstance(cause_exec, httpx.HTTPStatusError):status_codes.append(cause_exec.response.status_code)@@ -128,7 +128,7 @@ def util_call_with_backoff()else:warnings.warn(f"Unexpected error: {e}")- except Exception as e:+ except Exception as e: # pragma: no coverwarnings.warn(f"Unexpected error: {e}")retry_count = retry_count + 1@@ -142,7 +142,7 @@ def util_call_with_backoff(and skip_on_50x_errand all(httpx.codes.is_server_error(code) for code in status_codes)):- pytest.skip("Repeated HTTP 50x for service")+ pytest.skip("Repeated HTTP 50x for service") # pragma: no coverreturn succeeded, result