Skip to content

Commit

Permalink
Revert "update deprecated Session.close_all() usage (#3554)"
Browse files Browse the repository at this point in the history
This reverts commit 9a4e2db.
  • Loading branch information
ivan-c committed Dec 9, 2019
1 parent 3201e27 commit 57c1fb5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_scheduled_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from portal.models.role import ROLE
from portal.models.scheduled_job import ScheduledJob
from portal.tasks import test as test_task
from sqlalchemy.orm import session
from tests import TestCase


Expand Down Expand Up @@ -176,4 +175,4 @@ def test_job_trigger(self):
resp = self.client.post('/api/scheduled_job/{}/trigger'.format(job.id))
assert resp.status_code == 200

session.close_all_sessions()
db.session.close_all()

0 comments on commit 57c1fb5

Please sign in to comment.