From 5dc9b0d1bb7fcfbfc66c5d8384e7b0042d52e963 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Wed, 24 Sep 2025 11:39:34 -0400 Subject: [PATCH] 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. --- make_post_sell/tests/test_crypto_watcher.py | 1 + 1 file changed, 1 insertion(+) diff --git a/make_post_sell/tests/test_crypto_watcher.py b/make_post_sell/tests/test_crypto_watcher.py index 043fc3a..7c5a59a 100644 --- a/make_post_sell/tests/test_crypto_watcher.py +++ b/make_post_sell/tests/test_crypto_watcher.py @@ -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,