#33219: django.test.client missconversion of json with internal dicts
-------------------------------------+-------------------------------------
Reporter: caperutxa | Owner: nobody
Type: Bug | Status: closed
Component: Testing framework | Version: 3.2
Severity: Normal | Resolution: invalid
Keywords: test.client, | Triage Stage:
complex json | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Mariusz Felisiak):
* status: new => closed
* resolution: => invalid
Comment:
Thanks for the report, however I don't see any issue in Django here.
`format` is not an argument of
[https://docs.djangoproject.com/en/3.2/topics/testing/tools/#django.test.Client.post
Client.post()], you should use `content_type='application/json'` instead.
If you're having trouble understanding how Django works, see
TicketClosingReasons/UseSupportChannels for ways to get help.
--
Ticket URL: <https://code.djangoproject.com/ticket/33219#comment:1>
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/067.b5e7e45195c2f4df8c104b3aef61dc67%40djangoproject.com.