aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_edit.py
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-01-05 14:54:03 +0100
committerElrond <elrond+mediagoblin.org@samba-tng.org>2012-01-05 14:54:03 +0100
commitb48abba3036bb08ad05c469bc37481cc16420ed8 (patch)
treeb39e656c9bd58468a2895ff3da40986607b4241d /mediagoblin/tests/test_edit.py
parent49af00e491a7ec6b920a3780254f2203ae47fbe5 (diff)
downloadmediagoblin-b48abba3036bb08ad05c469bc37481cc16420ed8.tar.lz
mediagoblin-b48abba3036bb08ad05c469bc37481cc16420ed8.tar.xz
mediagoblin-b48abba3036bb08ad05c469bc37481cc16420ed8.zip
Fix Unit Tests for new password changing
Diffstat (limited to 'mediagoblin/tests/test_edit.py')
-rw-r--r--mediagoblin/tests/test_edit.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/mediagoblin/tests/test_edit.py b/mediagoblin/tests/test_edit.py
index 0cf71e9b..55f34b42 100644
--- a/mediagoblin/tests/test_edit.py
+++ b/mediagoblin/tests/test_edit.py
@@ -34,12 +34,10 @@ def test_change_password(test_app):
# test that the password can be changed
# template.clear_test_template_context()
test_app.post(
- '/edit/profile/', {
- 'bio': u'',
- 'url': u'',
+ '/edit/account/', {
'old_password': 'toast',
'new_password': '123456',
- 'confirm_password': '123456'})
+ })
# test_user has to be fetched again in order to have the current values
test_user = mg_globals.database.User.one({'username': 'chris'})
@@ -50,12 +48,10 @@ def test_change_password(test_app):
# is wrong
# template.clear_test_template_context()
test_app.post(
- '/edit/profile/', {
- 'bio': u'',
- 'url': u'',
+ '/edit/account/', {
'old_password': 'toast',
'new_password': '098765',
- 'confirm_password': '098765'})
+ })
test_user = mg_globals.database.User.one({'username': 'chris'})