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_regress/tests.py | |
parent | 4bb70cbcc60794f515c9bfefeca87b8272d33c0c (diff) | |
download | django-321e94fa41b121f65c02119c02098df327bbd569.tar.gz |
Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings.
Diffstat (limited to 'tests/fixtures_regress/tests.py')
-rw-r--r-- | tests/fixtures_regress/tests.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py index 71fe10528d..cc787e432d 100644 --- a/tests/fixtures_regress/tests.py +++ b/tests/fixtures_regress/tests.py @@ -212,7 +212,7 @@ class TestFixtures(TestCase): @override_settings(SERIALIZATION_MODULES={'unkn': 'unexistent.path'}) def test_unimportable_serializer(self): """ - Test that failing serializer import raises the proper error + Failing serializer import raises the proper error """ with six.assertRaisesRegex(self, ImportError, r"No module named.*unexistent"): management.call_command( @@ -363,8 +363,8 @@ class TestFixtures(TestCase): def test_dumpdata_uses_default_manager(self): """ Regression for #11286 - Ensure that dumpdata honors the default manager - Dump the current contents of the database as a JSON fixture + Dumpdata honors the default manager. Dump the current contents of + the database as a JSON fixture """ management.call_command( 'loaddata', @@ -617,8 +617,7 @@ class NaturalKeyFixtureTests(TestCase): def test_nk_on_serialize(self): """ - Check that natural key requirements are taken into account - when serializing models + Natural key requirements are taken into account when serializing models. """ management.call_command( 'loaddata', @@ -651,10 +650,8 @@ class NaturalKeyFixtureTests(TestCase): def test_dependency_sorting(self): """ - Now lets check the dependency sorting explicitly - It doesn't matter what order you mention the models - Store *must* be serialized before then Person, and both - must be serialized before Book. + It doesn't matter what order you mention the models, Store *must* be + serialized before then Person, and both must be serialized before Book. """ sorted_deps = serializers.sort_dependencies( [('fixtures_regress', [Book, Person, Store])] @@ -762,8 +759,7 @@ class NaturalKeyFixtureTests(TestCase): def test_normal_pk(self): """ - Check that normal primary keys still work - on a model with natural key capabilities + Normal primary keys work on a model with natural key capabilities. """ management.call_command( 'loaddata', @@ -900,7 +896,7 @@ class TestTicket11101(TransactionTestCase): @skipUnlessDBFeature('supports_transactions') def test_ticket_11101(self): - """Test that fixtures can be rolled back (ticket #11101).""" + """Fixtures can be rolled back (ticket #11101).""" with transaction.atomic(): management.call_command( 'loaddata', |