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 Initial Version
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
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.
Note:
See TracTickets
for help on using tickets.