Skip to content

Commit 74b43b1

Browse files
committed
Update test for report_configuration check property
1 parent af3458e commit 74b43b1

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def create_check(
8686
applicant_id=None,
8787
document_ids=None,
8888
report_names=None,
89+
report_configuration=None
8990
):
9091
if check_builder is None:
9192
return onfido_api.create_check(
@@ -94,6 +95,7 @@ def create_check(
9495
document_ids=document_ids,
9596
report_names=report_names,
9697
privacy_notices_read_consent_given=True,
98+
report_configuration=report_configuration,
9799
)
98100
)
99101

tests/test_report_schemas.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ def test_schema_of_facial_similarity_report_is_valid(
6969
applicant_id=applicant_id,
7070
document_ids=[document_id],
7171
report_names=[ReportName.FACIAL_SIMILARITY_PHOTO],
72+
report_configuration={
73+
'facial_similarity_photo': {
74+
'use_case': 'reverification'
75+
}
76+
},
7277
).report_ids[0]
7378

7479
facial_similarity_report = repeat_request_until_status_changes(

0 commit comments

Comments
 (0)