Skip to content

Commit

Permalink
Fix unit test for test_password_reset
Browse files Browse the repository at this point in the history
  • Loading branch information
coto committed Oct 10, 2012
1 parent 4b16eeb commit 233a88c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion boilerplate/handlers.py
Expand Up @@ -1176,7 +1176,9 @@ def get(self):
if self.reCaptcha_public_key == "PUT_YOUR_RECAPCHA_PUBLIC_KEY_HERE" or \
self.reCaptcha_private_key == "PUT_YOUR_RECAPCHA_PUBLIC_KEY_HERE":
chtml = '<div class="alert alert-error"><strong>Error</strong>: You have to <a href="http://www.google.com/recaptcha/whyrecaptcha" target="_blank">sign up ' \
'for API keys</a> in order to use reCAPTCHA.</div>'
'for API keys</a> in order to use reCAPTCHA.</div>' \
'<input type="hidden" name="recaptcha_challenge_field" value="manual_challenge" />' \
'<input type="hidden" name="recaptcha_response_field" value="manual_challenge" />'
params = {
'captchahtml': chtml,
}
Expand Down
1 change: 0 additions & 1 deletion boilerplate/tests.py
Expand Up @@ -194,7 +194,6 @@ def test_resend_activation_mail(self):
self.assert_success_message_in_response(response,
message='Congratulations, Your account testuser has been successfully activated.')


def test_request_with_no_user_agent_header(self):
self.get('/', headers={'Accept-Language' : 'en_US'})

Expand Down

0 comments on commit 233a88c

Please sign in to comment.