We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be18a30 commit e27b59aCopy full SHA for e27b59a
packages/postgres-database/tests/test_models_payments_transactions.py
@@ -49,8 +49,16 @@ async def _init(payment_id: str):
49
# get payment_id from payment-gateway
50
values = random_payment_transaction(payment_id=payment_id)
51
# remove states
52
- values.pop("state")
53
- values.pop("completed_at")
+ for to_remove in (
+ "completed_at",
54
+ "invoice_url",
55
+ "invoice_pdf_url",
56
+ "state",
57
+ "state_message",
58
+ "stripe_invoice_id",
59
+ ):
60
+ values.pop(to_remove)
61
+
62
# init successful: set timestamp
63
values["initiated_at"] = utcnow()
64
0 commit comments