#34392: Allow using test client response.json() with StreamingHttpResponse
-----------------------------------+--------------------------------------
Reporter: vainu-arto | Owner: vainu-arto
Type: New feature | Status: assigned
Component: Testing framework | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 1 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by vainu-arto):
Replying to [comment:2 Carlton Gibson]:
> OK, I think this is likely an ok addition.
>
> `getvalue()` should allow for an async iterator if we're going to use it
this way. (Consuming `self` rather than `self.streaming_content` would be
one way, but the warning would need to be caught.)
Huh. Apparently trac chose not to notify me on your comment. Sorry about
the delay.
I don't really see the difference you are talking about here. "Consuming
self" means calling StreamingHttpResponse.__iter__, right? That just
returns self.streaming_content, ending up in the same place as far as I
can tell. Can you be more specific on what you are asking me to do
instead?
--
Ticket URL: <https://code.djangoproject.com/ticket/34392#comment:4>
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/010701873630336c-8ddbe83c-83a3-444b-bbfa-16a62d291803-000000%40eu-central-1.amazonses.com.