Make update notification status transcational.

Refactor methods for reusability.
This commit is contained in:
Rebecca Law
2016-05-27 12:09:36 +01:00
parent 25a1b7f31c
commit 885abcaf16
4 changed files with 30 additions and 27 deletions

View File

@@ -40,8 +40,6 @@ def notify_db(notify_api, request):
def teardown():
db.session.remove()
db.drop_all()
db.engine.execute("drop type notify_status_types")
db.engine.execute("drop table alembic_version")
db.get_engine(notify_api).dispose()
request.addfinalizer(teardown)