Skip to content

Commit 1651058

Browse files
Update test_scheduled_jobs.py
1 parent e37d30b commit 1651058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/all/integration/api/helpers/test_scheduled_jobs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import datetime
22

3-
from app import db
3+
from app import current_app as app, db
44
from app.factories.event_invoice import EventInvoiceFactory
55
from app.models.event_invoice import EventInvoice
66
from app.api.helpers.scheduled_jobs import event_invoices_mark_due
@@ -13,7 +13,7 @@ class TestScheduledJobs(OpenEventTestCase):
1313
def test_event_invoices_mark_due(self):
1414
"""Method to test marking of event invoices as due"""
1515

16-
with self.app.test_request_context():
16+
with app.test_request_context():
1717
event_invoice = EventInvoiceFactory(event__ends_at=datetime.datetime(2019, 7, 20))
1818
db.session.commit()
1919
event_invoice_id = event_invoice.id

0 commit comments

Comments
 (0)