diff options
author | za <za@python.or.id> | 2016-10-27 14:53:39 +0700 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2016-11-10 21:30:21 -0500 |
commit | 321e94fa41b121f65c02119c02098df327bbd569 (patch) | |
tree | ce5476c191d589aca4b124f841dfbccac8dd299f /tests/fixtures | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/fixtures')
-rw-r--r-- | tests/fixtures/tests.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/fixtures/tests.py b/tests/fixtures/tests.py index 5bff638774..fcf9162345 100644 --- a/tests/fixtures/tests.py +++ b/tests/fixtures/tests.py @@ -29,7 +29,7 @@ class TestCaseFixtureLoadingTests(TestCase): fixtures = ['fixture1.json', 'fixture2.json'] def testClassFixtures(self): - "Check that test case has installed 3 fixture objects" + "Test case has installed 3 fixture objects" self.assertEqual(Article.objects.count(), 3) self.assertQuerysetEqual(Article.objects.all(), [ '<Article: Django conquers world!>', @@ -45,7 +45,7 @@ class SubclassTestCaseFixtureLoadingTests(TestCaseFixtureLoadingTests): fixtures = [] def testClassFixtures(self): - "Check that there were no fixture objects installed" + "There were no fixture objects installed" self.assertEqual(Article.objects.count(), 0) @@ -563,9 +563,8 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): def test_loaddata_error_message(self): """ - Verifies that loading a fixture which contains an invalid object - outputs an error message which contains the pk of the object - that triggered the error. + Loading a fixture which contains an invalid object outputs an error + message which contains the pk of the object that triggered the error. """ # MySQL needs a little prodding to reject invalid data. # This won't affect other tests because the database connection @@ -577,9 +576,6 @@ class FixtureLoadingTests(DumpDataAssertMixin, TestCase): self.assertIn("Could not load fixtures.Article(pk=1):", cm.exception.args[0]) def test_loaddata_app_option(self): - """ - Verifies that the --app option works. - """ with self.assertRaisesMessage(CommandError, "No fixture named 'db_fixture_1' found."): management.call_command('loaddata', 'db_fixture_1', verbosity=0, app_label="someotherapp") self.assertQuerysetEqual(Article.objects.all(), []) |