#30677: Improve Exception Message In Test Client when a None Value is provided
to a
POST
-------------------------------------+-------------------------------------
Reporter: idahogray | Owner: nobody
Type: | Status: new
Cleanup/optimization |
Component: Testing framework | Version: 2.2
Severity: Normal | Resolution:
Keywords: test client post | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by idahogray):
* has_patch: 0 => 1
Old 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.
New 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.
I have a proposed change in my fork on github:
https://github.com/idahogray/django/tree/ticket_30677
--
--
Ticket URL: <https://code.djangoproject.com/ticket/30677#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.881da481321c2c0b4f97e3ee436d2e26%40djangoproject.com.