El jue, 26-06-2008 a las 06:58 +0800, Russell Keith-Magee escribió:
> >> My preferred solution here would be to provide a way for test cases to
> >> substitute a top level URL pattern object for the duration of the
> >> test. For example:
> >

A patch in these lines is now attached to #7521, the patch right now:
  * Adds the "urls" parameter, and a new method to TestCase called
"_post_teardown", it's called at the end of __call__.
  * Adds a "clear_url_cache()" method to django.core.urlresolvers (To
clear the resolver cache when swapping urlconfs)
  * Adds two TestCases to check the "urls" parameter, they must be run
in order...
  * modifies fomtools.tests to use the urls paremeter instead of it's
own hack (which should be broken somehow for the cache thing).
  * docs!!!

The only thing not added to the patch is reverting [7726], it's on my
git branch thought,
http://www.marcfargas.com/gitweb/?p=django.git;a=shortlog;h=trac/7521-test-urlconfs


Hope this patch is ok!
Marc

--
 
http://www.marcfargas.com -- will be finished some day.

Attachment: signature.asc
Description: Esta parte del mensaje está firmada digitalmente

Reply via email to