From 0c6b59a5669199a43308f43fd6ec3479a5dcebc0 Mon Sep 17 00:00:00 2001 From: Russell Ballestrini Date: Thu, 25 Sep 2025 07:16:11 -0400 Subject: [PATCH] Fix remaining CryptoPayment constructor test failures - Add user and shop parameters to all CryptoPayment instantiations in test_integration.py - All crypto payment integration tests now passing --- make_post_sell/tests/test_integration.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/make_post_sell/tests/test_integration.py b/make_post_sell/tests/test_integration.py index 96f33f8..3c2a032 100644 --- a/make_post_sell/tests/test_integration.py +++ b/make_post_sell/tests/test_integration.py @@ -1762,6 +1762,8 @@ class TestCryptoPaymentIntegration(DatabaseIntegrationTests): # Create crypto payment payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="test_xmr_address", account_index=0, subaddress_index=1, @@ -1836,6 +1838,8 @@ class TestCryptoPaymentIntegration(DatabaseIntegrationTests): # Create crypto payment with refund address payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="payment_address", account_index=0, subaddress_index=2, @@ -1892,6 +1896,8 @@ class TestCryptoPaymentIntegration(DatabaseIntegrationTests): # Create expired payment expired_payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="expired_address", account_index=0, subaddress_index=3, @@ -1907,6 +1913,8 @@ class TestCryptoPaymentIntegration(DatabaseIntegrationTests): # Create valid payment valid_payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="valid_address", account_index=0, subaddress_index=4, @@ -1973,6 +1981,8 @@ class DogecoinPaymentIntegration(DatabaseIntegrationTests): # Create Dogecoin payment doge_payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="DQA4nJFciD9EhtMTZXDJYH6pxTSYrn4wFp", # Example DOGE address account_index=0, # Not used for DOGE subaddress_index=0, # Not used for DOGE @@ -2050,6 +2060,8 @@ class DogecoinPaymentIntegration(DatabaseIntegrationTests): doge_payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="DPayment123456789", account_index=0, subaddress_index=0, @@ -2104,6 +2116,8 @@ class DogecoinPaymentIntegration(DatabaseIntegrationTests): # Create expired DOGE payment expired_payment = CryptoPayment( invoice=invoice, + user=user, + shop=shop, address="DExpired123456789", account_index=0, subaddress_index=0,