Skip to content

Commit

Permalink
rename errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alexviquez committed Oct 3, 2022
1 parent 50e6474 commit 0610f11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mati/types/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class VerificationDocument:
fields: Optional[dict] = None

@property
def get_errors(self) -> Optional[List[Errors]]:
def errors(self) -> Optional[List[Errors]]:
if not self.steps:
return []
errors = [
Expand Down
2 changes: 2 additions & 0 deletions tests/resources/test_verifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def test_retrieve_full_verification(client: Client):
assert verification.govt_id_validation.is_valid
assert verification.proof_of_life_validation.is_valid
assert verification.proof_of_residency_validation.is_valid
assert not verification.govt_id_document.errors
assert not verification.proof_of_residency_document.errors
assert not verification.proof_of_life_errors
assert (
verification.proof_of_residency_document.address
Expand Down

0 comments on commit 0610f11

Please sign in to comment.