Skip to content
Snippets Groups Projects
Commit edd9eb43 authored by Julian's avatar Julian
Browse files

Properly rollback db transaction in db_flush (tests)

parent cc0a9df1
Branches
Tags
No related merge requests found
...@@ -20,6 +20,7 @@ def dump(basename, resp): ...@@ -20,6 +20,7 @@ def dump(basename, resp):
f.write(resp.data) f.write(resp.data)
def db_flush(): def db_flush():
db.session.rollback()
db.session = db.create_scoped_session() db.session = db.create_scoped_session()
if hasattr(request, 'ldap_connection'): if hasattr(request, 'ldap_connection'):
del request.ldap_session del request.ldap_session
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment