aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tests/test_auth.py
diff options
context:
space:
mode:
authorJoar Wandborg <git@wandborg.com>2011-12-31 22:57:08 +0100
committerJoar Wandborg <git@wandborg.com>2011-12-31 22:57:08 +0100
commit4601c30c2e80734cf3a18472c2e29a7f920b9604 (patch)
treec4f3c63f8eb306a435c6e15cb21a6168ecfdf1b8 /mediagoblin/tests/test_auth.py
parenteab23e38d0d4b3a95d6cbb9527715e82efaccdd6 (diff)
downloadmediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.tar.lz
mediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.tar.xz
mediagoblin-4601c30c2e80734cf3a18472c2e29a7f920b9604.zip
Fixed submission error handling and broken tests
- Fixed broken test_auth test - Fixed error handling on submission, it now raises the exception if it is not explicitly relevant to file submission.
Diffstat (limited to 'mediagoblin/tests/test_auth.py')
-rw-r--r--mediagoblin/tests/test_auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/tests/test_auth.py b/mediagoblin/tests/test_auth.py
index 9b0dea66..e54ffa5a 100644
--- a/mediagoblin/tests/test_auth.py
+++ b/mediagoblin/tests/test_auth.py
@@ -233,9 +233,9 @@ def test_register_views(test_app):
## Did we redirect to the proper page? Use the right template?
assert_equal(
urlparse.urlsplit(response.location)[2],
- '/auth/forgot_password/email_sent/')
+ '/auth/login/')
assert template.TEMPLATE_TEST_CONTEXT.has_key(
- 'mediagoblin/auth/fp_email_sent.html')
+ 'mediagoblin/auth/login.html')
## Make sure link to change password is sent by email
assert len(mail.EMAIL_TEST_INBOX) == 1