diff --git a/tests/api/test_api.py b/tests/api/test_api.py index 0a322a495..2401c71fe 100644 --- a/tests/api/test_api.py +++ b/tests/api/test_api.py @@ -262,7 +262,7 @@ async def test_create_fiat_subscription_invoice_rejected( assert response.status_code == 400 assert response.json()["detail"] == ( - "Subscription fiat payments can only be created by provider callbacks." + "Cannot create direct fiat subscription payments." ) fiat_mock.assert_not_awaited() diff --git a/tests/unit/test_services_payments.py b/tests/unit/test_services_payments.py index 9bf0fab4f..e2e3e2d49 100644 --- a/tests/unit/test_services_payments.py +++ b/tests/unit/test_services_payments.py @@ -87,7 +87,7 @@ async def test_create_payment_request_rejects_fiat_subscription( with pytest.raises( ValueError, - match="Subscription fiat payments can only be created by provider callbacks.", + match="Cannot create direct fiat subscription payments.", ): await create_payment_request( "wallet-1",