#34062: object HttpResponseNotAllowed can't be used in 'await' expression
-------------------------------------+-------------------------------------
Reporter: Antoine Lorence | Owner: Antoine
| Lorence
Type: Bug | Status: assigned
Component: Generic views | Version: 4.1
Severity: Release blocker | Resolution:
Keywords: async | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Antoine Lorence):
Wow, your draft is almost exactly what I already written in the codebase.
I ended with the exact same modification in View.http_method_not_allowed()
(to the letter).
I also written the almost same test in "async/tests" (I didn't use
RequestFactory, your version is better then).
I was currently looking into "asgi/tests" to check if I can add a full
request-response lifecycle test in such case, but this appear to be more
complicated. Do you think this is feasible / required ?
--
Ticket URL: <https://code.djangoproject.com/ticket/34062#comment:5>
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/0107018388a6f023-8a483398-01a5-4298-9506-18db5a57e8e1-000000%40eu-central-1.amazonses.com.