#8393: Test client handler should call set_script_prefix
------------------------------+---------------------------------------------
Reporter: jcassee | Owner: nobody
Status: new | Milestone:
Component: Unit test system | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 1 |
------------------------------+---------------------------------------------
Since [8015] every HTTP handler calls {{{urlresolvers.set_script_prefix}}}
to set the prefix for reverse URL resolving. The only except in the
handler used by the test client.
The problem I am solving may seem a bit esoteric. I'm trying to remove the
necessity of monkey-patching the {{{urlresolvers.reverse}}} function in
the (third-party) {{{localeurl}}} app. My solution is to append to the
script prefix for the request, but because the test client handler does
not reset it at every request my tests fail.
The attached patch makes the test client handler call
{{{set_script_prefix}}} at every request.
--
Ticket URL: <http://code.djangoproject.com/ticket/8393>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---