Skip to content

Commit 2310e48

Browse files
Fix mock
1 parent 6840e4a commit 2310e48

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/test_checkout.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,8 @@ async def test_webhook_payment_callback(
307307
factory=None,
308308
)
309309
mocker.patch(
310-
"app.core.checkout.endpoints_checkout.all_modules",
311-
[test_module],
310+
"app.module.get_all_modules",
311+
return_value=[test_module],
312312
)
313313

314314
response = client.post(
@@ -349,8 +349,8 @@ async def test_webhook_payment_callback_fail(
349349
factory=None,
350350
)
351351
mocker.patch(
352-
"app.core.checkout.endpoints_checkout.all_modules",
353-
[test_module],
352+
"app.module.get_all_modules",
353+
return_value=[test_module],
354354
)
355355

356356
mocked_hyperion_security_logger = mocker.patch(

0 commit comments

Comments
 (0)