google-code-export / django-simple-captcha

Automatically exported from code.google.com/p/django-simple-captcha
MIT License
0 stars 0 forks source link

Django test fails for django 1.3 and default configuration #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.django-simple-captcha-0.3.0
2.set CAPTCHA_OUTPUT_FORMAT = u'%(image)s %(hidden_field)s %(text_field)s' in 
settings.py
3.run manage.py test

What is the expected output? What do you see instead?
All tests should pass. 
An error is found instead: 
File 
"/usr/local/lib/python2.6/dist-packages/django_simple_captcha-0.3.0-py2.6.egg/ca
ptcha/tests/__init__.py", line 150, in testInvalidOutputFormat
    r = self.client.get(reverse('captcha-test'))

Caught ImproperlyConfigured while rendering: All of %(image)s, 
%(hidden_field)s, %(text_field)s must be present in your CAPTCHA_OUTPUT_FORMAT 
setting. Could not find %(hidden_field)s

What version of the product are you using? On what operating system?
Django 1.3
django-simple-captcha-0.3.0
Ubuntu 10.04

Please provide any additional information below.

Original issue reported on code.google.com by jayint...@gmail.com on 14 Jun 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Hello, 
I just tried to reproduce this, but the test seems to work just great here.

Are you using any other "non-standard" Django features, like e.g. non-standard 
settings locations or whatnot? 

Does this happen on a completely new "django-admin.py startproject" project?

Thank you.

Original comment by mbonetti on 14 Jun 2011 at 12:35

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Deleted the last comment. Apparently this was a problem with the 500 error 
template extending base.html which caused it to load the other forms as well.

Nothing wrong with this then... please close the issue. Thanks :)

Original comment by jayint...@gmail.com on 15 Jun 2011 at 5:49

GoogleCodeExporter commented 9 years ago
Thank you for the feedback, glad you figured it out.

Original comment by mbonetti on 15 Jun 2011 at 7:09