Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#21041 closed Cleanup/optimization (fixed)

Duplicate form in tests/model_forms/tests.py

Reported by: tuxcanfly Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

Very minor thing I noticed when browsing model form tests:

ArticleForm is defined here and immediately redefined:

https://github.com/django/django/blob/5649c0af9d90ba1368abbe6c233ee61c976c8137/tests/model_forms/tests.py#L110

If I'm not missing anything obvious, the redefinition is superfluous.

Change History (2)

comment:1 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In bab039d74c09bfba378b7a9b4a0a6d974e20f792:

Fixed #21041 -- Removed a duplicate form in tests.

Thanks tuxcanfly.

comment:2 by Tim Graham <timograham@…>, 11 years ago

In 77cf0d6519c431d5411576ab5588c44971598b96:

[1.6.x] Fixed #21041 -- Removed a duplicate form in tests.

Thanks tuxcanfly.

Backport of bab039d74c from master

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