praekelt/django-recaptcha — Issue #7: Check settings.DEBUG to allow unit tests
Author: victorneo
Created: 2011-10-12 06:02:40+00:00
State: open

Does django-recaptcha currently allow unit tests to successfully post a form that contains a ReCaptchaField()?

I have a form that contains the recaptcha field and I can't post the form from my unit tests as there is no way for me to get around the recaptcha field by failing or passing it intentionally.

One way would be to check for settings.DEBUG == True and allow certain responses to pass or fail accordingly. Only when settings.DEBUG == False then enforce the check strictly.