Fixing one test post-merge. We got rid of the mongo stuff, so... consistency!

Now we can merge LDAP support!  Woohoo!

This commit sponsored by the ever-awesome GMG contributor, Sebastian
Spaeth.  Thanks!
This commit is contained in:
Christopher Allan Webber 2013-09-20 09:51:24 -05:00
parent d33a954cad
commit 692e22d10b

View File

@ -102,8 +102,8 @@ def test_ldap_plugin(ldap_plugin_app):
ldap_plugin_app.get('/auth/logout/')
# Get user and detach from session
test_user = mg_globals.database.User.find_one({
'username': u'chris'})
test_user = mg_globals.database.User.query.filter_by(
username=u'chris').first()
Session.expunge(test_user)
# Log back in