summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2018-07-10 09:41:36 -0400
committerTim Graham <timograham@gmail.com>2018-07-10 09:43:12 -0400
commit178624855a3a0f9b4a79a1e33a9d298df179c71e (patch)
treecbae18c5f96c97c24a3f9036fbc6a7a76d03b94b /tests/contenttypes_tests
parent8e4a75e5d5e95d83c28e71c8b2cabc6987ef7b40 (diff)
Simplified a couple test docstrings.
Diffstat (limited to 'tests/contenttypes_tests')
-rw-r--r--tests/contenttypes_tests/test_management.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/contenttypes_tests/test_management.py b/tests/contenttypes_tests/test_management.py
index 7cdb1703a7..fa80c843d7 100644
--- a/tests/contenttypes_tests/test_management.py
+++ b/tests/contenttypes_tests/test_management.py
@@ -11,7 +11,7 @@ from .models import ModelWithNullFKToSite, Post
@modify_settings(INSTALLED_APPS={'append': ['no_models']})
-class UpdateContentTypesTests(TestCase):
+class RemoveStaleContentTypesTests(TestCase):
# Speed up tests by avoiding retrieving ContentTypes for all test apps.
available_apps = ['contenttypes_tests', 'no_models', 'django.contrib.contenttypes']
@@ -22,8 +22,8 @@ class UpdateContentTypesTests(TestCase):
def test_interactive_true_with_dependent_objects(self):
"""
- interactive mode of remove_stale_contenttypes (the default) deletes
- stale contenttypes and warn of dependent objects.
+ interactive mode (the default) deletes stale content types and warns of
+ dependent objects.
"""
post = Post.objects.create(title='post', content_type=self.content_type)
# A related object is needed to show that a custom collector with
@@ -42,8 +42,8 @@ class UpdateContentTypesTests(TestCase):
def test_interactive_true_without_dependent_objects(self):
"""
- interactive mode of remove_stale_contenttypes (the default) deletes
- stale contenttypes even if there aren't any dependent objects.
+ interactive mode deletes stale content types even if there aren't any
+ dependent objects.
"""
with mock.patch('builtins.input', return_value='yes'):
with captured_stdout() as stdout: