summaryrefslogtreecommitdiff
path: root/tests/pagination
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2018-11-23 20:59:38 -0500
committerTim Graham <timograham@gmail.com>2018-11-27 09:35:17 -0500
commit84e7a9f4a7bb3cad2bffae97baaae99de152c451 (patch)
treec81eeb6edf47ce0abdb7551cd28a3de354dfd20f /tests/pagination
parent9a7d336c3866c5226ed11868be0234c7e2fa47fa (diff)
Switched setUp() to setUpTestData() where possible in Django's tests.
Diffstat (limited to 'tests/pagination')
-rw-r--r--tests/pagination/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/pagination/tests.py b/tests/pagination/tests.py
index 20e74981cd..ef5108e42b 100644
--- a/tests/pagination/tests.py
+++ b/tests/pagination/tests.py
@@ -309,7 +309,8 @@ class ModelPaginationTests(TestCase):
"""
Test pagination with Django model instances
"""
- def setUp(self):
+ @classmethod
+ def setUpTestData(cls):
# Prepare a list of objects for pagination.
for x in range(1, 10):
a = Article(headline='Article %s' % x, pub_date=datetime(2005, 7, 29))