Opened 18 years ago

Closed 18 years ago

#3217 closed enhancement (fixed)

[patch] Unit test for invalid admin options

Reported by: myer0052@… Owned by: Adrian Holovaty
Component: Testing framework Version:
Severity: normal Keywords:
Cc: myer0052@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Test invalid and valid admin options to make sure that model validation is working properly.

This test is based off of the invalid_models test. This test includes a number of models which attempt to set incorrect admin options. All models mark Bad should fail with an error specified in the django.core.management.py file.

Attachments (1)

invalid_admin_options.diff (12.4 KB ) - added by Robert Myers <myer0052@…> 18 years ago.
invalid admin options test

Download all attachments as: .zip

Change History (3)

by Robert Myers <myer0052@…>, 18 years ago

Attachment: invalid_admin_options.diff added

invalid admin options test

comment:1 by Robert Myers <myer0052@…>, 18 years ago

Cc: myer0052@… added

comment:2 by Russell Keith-Magee, 18 years ago

Resolution: fixed
Status: newclosed

(In [4273]) Fixes #3217 -- Added regression tests for options on the Admin metaclass. Includes some tests that are commented out, as they are known failures. Thanks, Robert Myers (who has promised to fix the rest of the tests).

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