Skip to content

Commit

Permalink
Added test case for marking invoice as due
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsaicharan1 committed Oct 8, 2019
1 parent abd7fe1 commit e11df48
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/all/integration/api/helpers/test_scheduled_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,11 @@ def test_event_invoices_mark_due(self):
event_invoices_mark_due()
status = EventInvoice.query.get(event_invoice_id).status
self.assertEqual(status, "due")

event_invoice = EventInvoiceFactory(status="paid")
db.session.commit()
event_invoice_id = event_invoice.id
event_invoices_mark_due()
status = EventInvoice.query.get(event_invoice_id).status
self.assertNotEqual(status, "due")

0 comments on commit e11df48

Please sign in to comment.