Opened 6 years ago
Last modified 6 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 )
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
Note:
See TracTickets
for help on using tickets.