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
This commit is contained in:
parent
3b50467402
commit
0c6b59a566
1 changed files with 14 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue