Opened 12 years ago

Closed 12 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


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 file.

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by Robert Myers <myer0052@…>

Attachment: invalid_admin_options.diff added

invalid admin options test

comment:1 Changed 12 years ago by Robert Myers <myer0052@…>

Cc: myer0052@… added

comment:2 Changed 12 years ago by Russell Keith-Magee

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