aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-10-08 15:30:12 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-10-08 15:30:12 -0500
commit27fcf946d08bbd620f9ef1e819897e4556e4539e (patch)
treed50eec83af2956b42a7aa06090145a961b12f3cd
parent6180e3a915f4484e970e6d776740b2da58b12f94 (diff)
downloadmediagoblin-27fcf946d08bbd620f9ef1e819897e4556e4539e.tar.lz
mediagoblin-27fcf946d08bbd620f9ef1e819897e4556e4539e.tar.xz
mediagoblin-27fcf946d08bbd620f9ef1e819897e4556e4539e.zip
Fixing the test_change_password test. Needed a privilege!
I'm pretty sure this should work correctly now. This commit sponsored by Michał Masłowski. Thanks!
-rw-r--r--mediagoblin/tests/test_basic_auth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/mediagoblin/tests/test_basic_auth.py b/mediagoblin/tests/test_basic_auth.py
index 45deab7c..828f0515 100644
--- a/mediagoblin/tests/test_basic_auth.py
+++ b/mediagoblin/tests/test_basic_auth.py
@@ -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/', {