Skip to content

Commit

Permalink
flake resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Aug 26, 2024
1 parent 97976bd commit b3fbaed
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/test_sage300/test_exports/test_queues.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from datetime import datetime
from apps.accounting_exports.models import AccountingExport, Error
from apps.sage300.exports.purchase_invoice.models import PurchaseInvoice, PurchaseInvoiceLineitems
from apps.sage300.exports.purchase_invoice.queues import (
poll_operation_status,
check_accounting_export_and_start_import,
Expand Down Expand Up @@ -299,7 +298,6 @@ def test_skipping_purchase_invoice(
accounting_export.exported_at = None
accounting_export.save()


error = Error.objects.filter(workspace_id=workspace_id, accounting_export=accounting_export).delete()

error = Error.objects.create(
Expand All @@ -321,13 +319,10 @@ def test_skipping_purchase_invoice(
True,
1
)

accounting_export.refresh_from_db()

assert accounting_export.status == ''
assert accounting_export.type == 'PURCHASE_INVOICE'


Error.objects.filter(id=error.id).update(updated_at=datetime(2024, 8, 20))

check_accounting_export_and_start_import(
Expand All @@ -336,7 +331,6 @@ def test_skipping_purchase_invoice(
True,
1
)

accounting_export.refresh_from_db()

assert accounting_export.status == 'ENQUEUED'
Expand All @@ -360,7 +354,6 @@ def test_skipping_direct_cost(
accounting_export.exported_at = None
accounting_export.save()


error = Error.objects.filter(workspace_id=workspace_id, accounting_export=accounting_export).delete()

error = Error.objects.create(
Expand Down Expand Up @@ -388,7 +381,6 @@ def test_skipping_direct_cost(
assert accounting_export.status == ''
assert accounting_export.type == 'DIRECT_COST'


Error.objects.filter(id=error.id).update(updated_at=datetime(2024, 8, 20))

check_accounting_export_and_start_import(
Expand Down

0 comments on commit b3fbaed

Please sign in to comment.