diff options
Diffstat (limited to 'tests/contenttypes_tests')
| -rw-r--r-- | tests/contenttypes_tests/test_fields.py | 3 | ||||
| -rw-r--r-- | tests/contenttypes_tests/test_views.py | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/contenttypes_tests/test_fields.py b/tests/contenttypes_tests/test_fields.py index 764b9fa7db..c2b12b58bc 100644 --- a/tests/contenttypes_tests/test_fields.py +++ b/tests/contenttypes_tests/test_fields.py @@ -61,7 +61,8 @@ class GenericForeignKeyTests(TestCase): Answer.objects.create(text="answer", question=question) answer = Answer.objects.defer("text").get() old_question_obj = answer.question - # The reverse relation is refreshed even when the text field is deferred. + # The reverse relation is refreshed even when the text field is + # deferred. answer.refresh_from_db() self.assertIsNot(answer.question, old_question_obj) diff --git a/tests/contenttypes_tests/test_views.py b/tests/contenttypes_tests/test_views.py index 8cc11de3cb..bec79105c4 100644 --- a/tests/contenttypes_tests/test_views.py +++ b/tests/contenttypes_tests/test_views.py @@ -63,7 +63,10 @@ class ContentTypesViewsTests(TestCase): Site.objects.clear_cache() def test_shortcut_with_absolute_url(self): - "Can view a shortcut for an Author object that has a get_absolute_url method" + """ + Can view a shortcut for an Author object that has a get_absolute_url + method + """ for obj in Author.objects.all(): with self.subTest(obj=obj): short_url = "/shortcut/%s/%s/" % ( |
