Fixing the test_change_password test. Needed a privilege!
authorChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 8 Oct 2013 20:30:12 +0000 (15:30 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Tue, 8 Oct 2013 20:30:12 +0000 (15:30 -0500)
I'm pretty sure this should work correctly now.

This commit sponsored by Michał Masłowski.  Thanks!

mediagoblin/tests/test_basic_auth.py

index 45deab7c5f3bf1754606bceb7b0067f5334d1e40..828f05156d9a6c487e32a9982ac65f9b4847c847 100644 (file)
@@ -66,7 +66,9 @@ def test_bcrypt_gen_password_hash():
 
 def test_change_password(test_app):
         """Test changing password correctly and incorrectly"""
-        test_user = fixture_add_user(password=u'toast')
+        test_user = fixture_add_user(
+            password=u'toast',
+            privileges=[u'active'])
 
         test_app.post(
             '/auth/login/', {