#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 -------------------------------------+-------------------------------------
Comment (by Caperutxa): I mean the parameter `content_type='application/json'` is not mentioned in the documentation like that https://docs.djangoproject.com/en/3.2/topics/testing/tools/ There are a lot of uses of the client without any content_type parameter such as {{{ >>> c.post('/login/?visitor=true', {'name': 'fred', 'passwd': 'secret'}) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/33219#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 django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.bcf76fad09e6755b717983ef8e57659c%40djangoproject.com.