Fix crypto watcher tests for new CryptoPayment constructor

- Add missing user and shop parameters to CryptoPayment constructor calls in tests
- Resolves TypeError: missing required positional arguments 'user' and 'shop'

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Russell Ballestrini 2025-09-24 22:35:32 -04:00
parent 3f313b6bba
commit cb7a7439c3

View file

@ -191,6 +191,8 @@ class CryptoWatcherIntegrationTests(unittest.TestCase):
# Create test crypto payment
self.test_payment = CryptoPayment(
invoice=self.test_invoice,
user=self.test_invoice.user,
shop=self.test_invoice.shop,
address="test_xmr_address",
account_index=0,
subaddress_index=1,
@ -275,6 +277,8 @@ class CryptoWatcherIntegrationTests(unittest.TestCase):
payment = CryptoPayment(
invoice=invoice,
user=invoice.user,
shop=invoice.shop,
address="test_address2",
account_index=0,
subaddress_index=2,
@ -342,6 +346,8 @@ class CryptoWatcherIntegrationTests(unittest.TestCase):
payment = CryptoPayment(
invoice=invoice,
user=invoice.user,
shop=invoice.shop,
address="test_cart_address",
account_index=0,
subaddress_index=1,