From f8dc9028161c35641033968e2aed8e66803daae7 Mon Sep 17 00:00:00 2001 From: Ashutosh619-sudo Date: Thu, 29 Aug 2024 14:43:19 +0530 Subject: [PATCH] flake resolved --- tests/test_quickbooks_online/test_tasks.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/test_quickbooks_online/test_tasks.py b/tests/test_quickbooks_online/test_tasks.py index 886c76b0..b86a74b3 100644 --- a/tests/test_quickbooks_online/test_tasks.py +++ b/tests/test_quickbooks_online/test_tasks.py @@ -1109,7 +1109,6 @@ def test_skipping_bill_creation(db, mocker): expense_group.exported_at = None expense_group.save() - error = Error.objects.filter(workspace_id=workspace_id, expense_group=expense_group).delete() error = Error.objects.create( @@ -1142,7 +1141,6 @@ def test_skipping_bill_creation(db, mocker): def test_skipping_journal_creation(db, mocker): workspace_id = 4 - expense_group = ExpenseGroup.objects.get(id=23) expense_group.exported_at = None expense_group.save() @@ -1218,7 +1216,7 @@ def test_skipping_credit_card_charge_creation(db, mocker): expense_group = ExpenseGroup.objects.get(id=17) expense_group.exported_at = None expense_group.save() - + credit = CreditCardPurchase.objects.get(expense_group_id=17) CreditCardPurchaseLineitem.objects.filter(credit_card_purchase=credit).delete() TaskLog.objects.filter(credit_card_purchase=credit).update(credit_card_purchase=None)