{{{
resp = self.client.get('/api/things/')
assert 'users' in resp.json()
assert 'groups' in resp.json()
}}}
Each call to `json()` currently re-parses the unchanged body. It could
cache this :)
--
Ticket URL: <https://code.djangoproject.com/ticket/27516>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: me@… (added)
* owner: nobody => Adam Chainz
* has_patch: 0 => 1
* status: new => assigned
Comment:
https://github.com/django/django/pull/7584
--
Ticket URL: <https://code.djangoproject.com/ticket/27516#comment:1>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/27516#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"19e2114634c322d5a58f3dd282a3a3cfd0f5aa24" 19e21146]:
{{{
#!CommitTicketReference repository=""
revision="19e2114634c322d5a58f3dd282a3a3cfd0f5aa24"
Fixed #27516 -- Made test client's response.json() cache the parsed JSON.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27516#comment:3>