From: Christopher Allan Webber Date: Fri, 20 Sep 2013 14:51:24 +0000 (-0500) Subject: Fixing one test post-merge. We got rid of the mongo stuff, so... consistency! X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=692e22d10b5f5ac10e17363a3b6d985919328341;p=mediagoblin.git 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! --- diff --git a/mediagoblin/tests/test_ldap.py b/mediagoblin/tests/test_ldap.py index 2f9a1372..708ce6cb 100644 --- a/mediagoblin/tests/test_ldap.py +++ b/mediagoblin/tests/test_ldap.py @@ -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