#32929: AsyncRequestFactory.get() ignores data parameter
-------------------------------------+-------------------------------------
               Reporter:  Pochang    |          Owner:  Pochang Lee
  Lee                                |
                   Type:  Bug        |         Status:  assigned
              Component:  Testing    |        Version:  3.2
  framework                          |       Keywords:  AsyncTestClient,
               Severity:  Normal     |  AsyncRequestFactory
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  0          |
-------------------------------------+-------------------------------------
 When passing data to AsyncRequestFactory.get(),
 the resulting request.GET always gives an empty QueryDict

 {{{
 >>> request_factory = AsyncRequestFactory()
 >>> request = request_factory.get('/somewhere/', {'var': '100'})
 >>> request.GET
 <QueryDict: {}>
 }}}

 while in synchronous

 {{{

 >>> request_factory = RequestFactory()
 >>> request = request_factory.get('/somewhere/', {'var': '100'})
 >>> request.GET
 <QueryDict: {'var': ['100']}>

 }}}

 This also prevents AsyncClient.get() from passing GET parameters to view
 function.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32929>
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/051.a75e55e6490d574735fc4ef37e740d1e%40djangoproject.com.

Reply via email to