Opened 7 years ago

Closed 5 years ago

#11241 closed New feature (duplicate)

Allow assertFormError to check a formsets' non_form_errors

Reported by: Seth Buntin Owned by: nobody
Component: Testing framework Version: master
Severity: Normal Keywords:
Cc: sethtrain@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

When using assertFormError while testing a formset it would be nice to be able assert with a formsets' non_form_errors, I have changed the assertFormError to handle this case.

Attachments (1)

assertFormError.diff (857 bytes) - added by Seth Buntin 7 years ago.

Download all attachments as: .zip

Change History (5)

Changed 7 years ago by Seth Buntin

Attachment: assertFormError.diff added

comment:1 Changed 7 years ago by Russell Keith-Magee

milestone: 1.1
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

Idea seems sound, but the deadline for v1.1 features has passed.

comment:2 Changed 7 years ago by martin_speleo

Unless I am misunderstanding how one might use assertFormError to test a formset, I would suggest that a seperate function is required to test formset field-errors and non-field-errors. This would seem a more natural place to test for non-form errors. I have proposed such a solution in ticket:11603.

comment:3 Changed 6 years ago by Julien Phalip

Severity: Normal
Type: New feature

comment:4 Changed 5 years ago by Julien Phalip

Resolution: duplicate
Status: newclosed

Closing in favour of #11603, which addresses a larger scope and has a more comprehensive patch.

Note: See TracTickets for help on using tickets.
Back to Top