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:
parent
4a3bf49c24
commit
5dc9b0d1bb
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue