Skip to content

Commit

Permalink
Merge pull request #82 from DiogoAndreBotas/add-tests-for-download-nf…
Browse files Browse the repository at this point in the history
…c-face-endpoint

Add tests for Download NFC Face endpoint
  • Loading branch information
dvacca-onfido authored Feb 19, 2025
2 parents 2db45e9 + fc26dff commit d8ca983
Show file tree
Hide file tree
Showing 3 changed files with 11,783 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def create_applicant(onfido_api, applicant_builder=None):
return onfido_api.create_applicant(applicant_builder)


def upload_document(onfido_api, applicant_id):
def upload_document(onfido_api, applicant_id, file_path="tests/media/sample_driving_licence.png"):
return onfido_api.upload_document(
applicant_id=applicant_id,
type=onfido.DocumentTypes.PASSPORT,
side="front",
file="tests/media/sample_driving_licence.png",
file=file_path,
)


Expand Down
Loading

0 comments on commit d8ca983

Please sign in to comment.