#22963: Test client PATCH turns into GET when follow=True
-----------------------------------+--------------------
     Reporter:  marshall@…         |      Owner:  nobody
         Type:  Bug                |     Status:  new
    Component:  Testing framework  |    Version:  1.6
     Severity:  Normal             |   Keywords:
 Triage Stage:  Unreviewed         |  Has patch:  0
Easy pickings:  0                  |      UI/UX:  0
-----------------------------------+--------------------
 I ran into a little problem with the test framework. When following a
 redirect the PATCH request magically turns into a GET.
 {{{
 class DjangoTestPatch(TestCase):
     def test_patch_follow_redirect(self):
         response = self.client.patch('/path/')
         self.assertEqual(response.request['REQUEST_METHOD'], 'PATCH')
 #Works
         response = self.client.patch('/path', follow=True)
         self.assertEqual(response.request['REQUEST_METHOD'], 'PATCH')
 #Doesn't Work
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/22963>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/062.8cca980a9ffed0d8518251bd7bd0d63d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to