Opened 6 years ago

Closed 5 years ago

#11241 closed New feature (duplicate)

Allow assertFormError to check a formsets' non_form_errors

Reported by: sethtrain 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:


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 sethtrain 6 years ago.

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by sethtrain

comment:1 Changed 6 years ago by russellm

  • milestone 1.1 deleted
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

comment:2 Changed 6 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 5 years ago by julien

  • Severity set to Normal
  • Type set to New feature

comment:4 Changed 5 years ago by julien

  • Resolution set to duplicate
  • Status changed from new to closed

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