Add missing fee_amount field to PaymentRescue test mock

The real PaymentRescue.handle_expired_payment() method returns fee_amount
but the test mock was missing this field, causing KeyError in tests.
This commit is contained in:
Russell Ballestrini 2025-09-24 11:39:34 -04:00
parent 4a3bf49c24
commit 5dc9b0d1bb

View file

@ -585,6 +585,7 @@ class CryptoWatcherIntegrationTests(unittest.TestCase):
"refund_amount": Decimal("0.1"),
"amount_xmr": Decimal("0.1"),
"reason": "Expired payment refund with 9% restocking fee",
"fee_amount": Decimal("0.01"),
}
mock_rescue.execute_refund.return_value = {
"success": True,