Skip to content

Commit 4c81ea7

Browse files
committed
(BSR)[API] fix: flay ubble identification of too old user test
1 parent a9fda0c commit 4c81ea7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/tests/connectors/beneficiaries/ubble_fixtures.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ def build_ubble_identification_v2_response(
4343
"webhook_url": "https://webhook.example.com",
4444
"redirect_url": "https://redirect.example.com",
4545
"declared_data": {"name": "Oriane Bertone"},
46-
"created_on": "2024-12-29T15:55:50.391708Z",
47-
"modified_on": "2024-12-30T17:01:23.856294Z",
46+
"created_on": "2024-10-29T15:55:50.391708Z",
47+
"modified_on": "2024-10-30T17:01:23.856294Z",
4848
"status": "approved",
4949
"face": {"image_signed_url": "https://api.ubble.example.com/idv_01jbcfv575hfh62b6t89304769"},
5050
"response_codes": [{"code": 10000, "summary": "approved"}],

api/tests/core/subscription/ubble/test_api.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ def test_ubble_identification_approved_but_user_too_young(self, requests_mock):
261261
assert fraud_check.status == subscription_models.FraudCheckStatus.KO
262262
assert fraud_check.reasonCodes == [subscription_models.FraudReasonCode.AGE_TOO_YOUNG]
263263

264+
@pytest.mark.time_machine("2025-02-02")
264265
def test_ubble_identification_approved_but_user_too_old(self, requests_mock):
265266
user = users_factories.UserFactory(age=40)
266267
fraud_check = BeneficiaryFraudCheckFactory(

0 commit comments

Comments
 (0)