For example, I have a captcha that is used in parts of a site that
affects form logic.
The django settings has a variable CAPTCHA = True, which acts as a
switch.

I'd like to change this setting in the setup for each TestCase.  The
regular unittests tests (in which we are assuming the captcha is off)
will not be affected, since their testcase has ensured that the
CAPTCHA setting is set to False.  The captcha app unittests will be
able to test the new form logic, since their testcase has set the
CAPTCHA setting to True.

I thought I'd be able to simply use a setattr, but apparently it's not
so easy.

Is the only solution to create a new testrunner that actually sets up
a different environment (with different settings) for each app?

Thanks,

Cody

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to