Opened 5 years ago

Last modified 5 years ago

#30677 closed Cleanup/optimization

Improve Exception Message In Test Client when a None Value is provided to a POST — at Version 1

Reported by: Keith Gray Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords: test client post
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by Keith Gray)

I am upgrading to 2.2.1 from 2.0.5 and my tests are failing due to a change in the test client: https://docs.djangoproject.com/en/2.2/releases/2.2/#miscellaneous. It now throws an exception if a None value is provided in data given to a POST. I would like to propose an improvement to the message to display the offending Key and Value that generate the exception.

I have a proposed change in my fork on github: https://github.com/idahogray/django/tree/ticket_30677

Change History (1)

comment:1 by Keith Gray, 5 years ago

Description: modified (diff)
Has patch: set
Note: See TracTickets for help on using tickets.
Back to Top