aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-09-20 09:51:24 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-09-20 09:51:24 -0500
commit692e22d10b5f5ac10e17363a3b6d985919328341 (patch)
tree5fbf6dd4a8a43d82f3f896bbcbb3ed0715cc2b51 /mediagoblin/tests
parentd33a954cad55457b52028f7ac57a59a07297c48a (diff)
downloadmediagoblin-692e22d10b5f5ac10e17363a3b6d985919328341.tar.lz
mediagoblin-692e22d10b5f5ac10e17363a3b6d985919328341.tar.xz
mediagoblin-692e22d10b5f5ac10e17363a3b6d985919328341.zip
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!
Diffstat (limited to 'mediagoblin/tests')
-rw-r--r--mediagoblin/tests/test_ldap.py4
1 files changed, 2 insertions, 2 deletions
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