summaryrefslogtreecommitdiff
path: root/tests/sites_framework
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2016-02-12 11:36:46 -0500
committerTim Graham <timograham@gmail.com>2016-02-12 13:01:25 -0500
commit004ba0f99eb25c3f32aa3a41707534e955d1878e (patch)
tree74273e902b824f7288eac57ba961cbd4b572223c /tests/sites_framework
parent36f1f5cfb008c465f372389080cdd92671a6cab7 (diff)
downloaddjango-004ba0f99eb25c3f32aa3a41707534e955d1878e.tar.gz
Removed unneeded hint=None/obj=None in system check messages.
Diffstat (limited to 'tests/sites_framework')
-rw-r--r--tests/sites_framework/tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/sites_framework/tests.py b/tests/sites_framework/tests.py
index 576dbfc7eb..6d2717457a 100644
--- a/tests/sites_framework/tests.py
+++ b/tests/sites_framework/tests.py
@@ -44,9 +44,8 @@ class CurrentSiteManagerChecksTests(SimpleTestCase):
errors = InvalidArticle.check()
expected = [
checks.Error(
- ("CurrentSiteManager could not find a field named "
- "'places_this_article_should_appear'."),
- hint=None,
+ "CurrentSiteManager could not find a field named "
+ "'places_this_article_should_appear'.",
obj=InvalidArticle.on_site,
id='sites.E001',
)
@@ -62,8 +61,8 @@ class CurrentSiteManagerChecksTests(SimpleTestCase):
errors = ConfusedArticle.check()
expected = [
checks.Error(
- "CurrentSiteManager cannot use 'ConfusedArticle.site' as it is not a ForeignKey or ManyToManyField.",
- hint=None,
+ "CurrentSiteManager cannot use 'ConfusedArticle.site' as it is "
+ "not a ForeignKey or ManyToManyField.",
obj=ConfusedArticle.on_site,
id='sites.E002',
)