diff options
author | Adam Johnson <me@adamj.eu> | 2020-05-01 13:37:21 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-04 12:10:47 +0200 |
commit | d17b380653da5f95885ce53468fe7aac60672841 (patch) | |
tree | 9fbe962d480093a45cf238d22596812637765c74 /tests/select_related | |
parent | 787981f9d1d5abc489a0b069e3353b8ad7aa9778 (diff) | |
download | django-d17b380653da5f95885ce53468fe7aac60672841.tar.gz |
Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments.
Diffstat (limited to 'tests/select_related')
-rw-r--r-- | tests/select_related/tests.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/select_related/tests.py b/tests/select_related/tests.py index 0af10f207f..6debf0d67b 100644 --- a/tests/select_related/tests.py +++ b/tests/select_related/tests.py @@ -60,10 +60,6 @@ class SelectRelatedTests(TestCase): self.assertEqual(domain.name, 'Eukaryota') def test_list_without_select_related(self): - """ - select_related() also of course applies to entire lists, not just - items. This test verifies the expected behavior without select_related. - """ with self.assertNumQueries(9): world = Species.objects.all() families = [o.genus.family.name for o in world] @@ -75,10 +71,7 @@ class SelectRelatedTests(TestCase): ]) def test_list_with_select_related(self): - """ - select_related() also of course applies to entire lists, not just - items. This test verifies the expected behavior with select_related. - """ + """select_related() applies to entire lists, not just items.""" with self.assertNumQueries(1): world = Species.objects.all().select_related() families = [o.genus.family.name for o in world] |