diff options
| author | Tim Graham <timograham@gmail.com> | 2016-02-12 11:36:46 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-02-12 13:01:25 -0500 |
| commit | 004ba0f99eb25c3f32aa3a41707534e955d1878e (patch) | |
| tree | 74273e902b824f7288eac57ba961cbd4b572223c /tests/contenttypes_tests | |
| parent | 36f1f5cfb008c465f372389080cdd92671a6cab7 (diff) | |
Removed unneeded hint=None/obj=None in system check messages.
Diffstat (limited to 'tests/contenttypes_tests')
| -rw-r--r-- | tests/contenttypes_tests/tests.py | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/tests/contenttypes_tests/tests.py b/tests/contenttypes_tests/tests.py index e5cf3d2010..7000c6fe48 100644 --- a/tests/contenttypes_tests/tests.py +++ b/tests/contenttypes_tests/tests.py @@ -135,7 +135,6 @@ class GenericForeignKeyTests(SimpleTestCase): expected = [ checks.Error( "The GenericForeignKey content type references the non-existent field 'TaggedItem.content_type'.", - hint=None, obj=TaggedItem.content_object, id='contenttypes.E002', ) @@ -194,7 +193,6 @@ class GenericForeignKeyTests(SimpleTestCase): expected = [ checks.Error( "The GenericForeignKey object ID references the non-existent field 'object_id'.", - hint=None, obj=TaggedItem.content_object, id='contenttypes.E001', ) @@ -212,7 +210,6 @@ class GenericForeignKeyTests(SimpleTestCase): expected = [ checks.Error( 'Field names must not end with an underscore.', - hint=None, obj=Model.content_object_, id='fields.E001', ) @@ -269,9 +266,8 @@ class GenericRelationshipTests(SimpleTestCase): errors = Model.rel.field.check() expected = [ checks.Error( - ("Field defines a relation with model 'MissingModel', " - "which is either not installed, or is abstract."), - hint=None, + "Field defines a relation with model 'MissingModel', " + "which is either not installed, or is abstract.", obj=Model.rel.field, id='fields.E300', ) @@ -300,10 +296,9 @@ class GenericRelationshipTests(SimpleTestCase): errors = Bookmark.tags.field.check() expected = [ checks.Error( - ("The GenericRelation defines a relation with the model " - "'contenttypes_tests.TaggedItem', but that model does not have a " - "GenericForeignKey."), - hint=None, + "The GenericRelation defines a relation with the model " + "'contenttypes_tests.TaggedItem', but that model does not have a " + "GenericForeignKey.", obj=Bookmark.tags.field, id='contenttypes.E004', ) @@ -329,9 +324,9 @@ class GenericRelationshipTests(SimpleTestCase): errors = Model.rel.field.check() expected = [ checks.Error( - ("Field defines a relation with the model " - "'contenttypes_tests.SwappedModel', " - "which has been swapped out."), + "Field defines a relation with the model " + "'contenttypes_tests.SwappedModel', " + "which has been swapped out.", hint="Update the relation to point at 'settings.TEST_SWAPPED_MODEL'.", obj=Model.rel.field, id='fields.E301', @@ -352,7 +347,6 @@ class GenericRelationshipTests(SimpleTestCase): expected = [ checks.Error( 'Field names must not end with an underscore.', - hint=None, obj=InvalidBookmark.tags_.field, id='fields.E001', ) |
