From 27fcf946d08bbd620f9ef1e819897e4556e4539e Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Tue, 8 Oct 2013 15:30:12 -0500 Subject: [PATCH] Fixing the test_change_password test. Needed a privilege! MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit I'm pretty sure this should work correctly now. This commit sponsored by Michał Masłowski. Thanks! --- mediagoblin/tests/test_basic_auth.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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/', { -- 2.25.1