From e89d5249fe764b3f1c1534c8204ba2ff48cfa7a3 Mon Sep 17 00:00:00 2001 From: AlexViquez Date: Fri, 14 Oct 2022 15:00:51 -0500 Subject: [PATCH] ocr_number --- mati/types/enums.py | 6 ++++-- tests/resources/test_verifications.py | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mati/types/enums.py b/mati/types/enums.py index 5bd8fb4..a2c21a0 100644 --- a/mati/types/enums.py +++ b/mati/types/enums.py @@ -149,7 +149,8 @@ def curp(self) -> str: @property def document_number(self) -> str: """ - This property fills the dni number direct from the ocr fields `document_number` + This property fills the dni number direct from the ocr + fields `document_number` """ if self.fields and 'document_number' in self.fields: return self.fields['document_number']['value'] @@ -158,7 +159,8 @@ def document_number(self) -> str: @property def ocr_number(self) -> str: """ - This property fills the number extra direct from the ocr fields `ocr_number` + This property fills the number extra direct from the ocr + fields `ocr_number` """ if self.fields and 'ocr_number' in self.fields: return self.fields['ocr_number']['value'] diff --git a/tests/resources/test_verifications.py b/tests/resources/test_verifications.py index 3f02def..911f621 100644 --- a/tests/resources/test_verifications.py +++ b/tests/resources/test_verifications.py @@ -78,3 +78,4 @@ def test_retrieve_dni_verification(verification_without_pol): assert not verification.proof_of_life_errors assert not verification.proof_of_life_document assert verification.documents[0].document_number == '111' + assert not verification.documents[0].ocr_number