Skip to content

Commit e27b59a

Browse files
author
Andrei Neagu
committed
fixed broken tests
1 parent be18a30 commit e27b59a

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

packages/postgres-database/tests/test_models_payments_transactions.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,16 @@ async def _init(payment_id: str):
4949
# get payment_id from payment-gateway
5050
values = random_payment_transaction(payment_id=payment_id)
5151
# remove states
52-
values.pop("state")
53-
values.pop("completed_at")
52+
for to_remove in (
53+
"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+
5462
# init successful: set timestamp
5563
values["initiated_at"] = utcnow()
5664

0 commit comments

Comments
 (0)