summaryrefslogtreecommitdiff
path: root/tests/foreign_object/test_empty_join.py
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/foreign_object/test_empty_join.py
parent9a7d336c3866c5226ed11868be0234c7e2fa47fa (diff)
Switched setUp() to setUpTestData() where possible in Django's tests.
Diffstat (limited to 'tests/foreign_object/test_empty_join.py')
-rw-r--r--tests/foreign_object/test_empty_join.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/foreign_object/test_empty_join.py b/tests/foreign_object/test_empty_join.py
index 1fc6c450d7..83300fd25b 100644
--- a/tests/foreign_object/test_empty_join.py
+++ b/tests/foreign_object/test_empty_join.py
@@ -4,7 +4,8 @@ from .models import SlugPage
class RestrictedConditionsTests(TestCase):
- def setUp(self):
+ @classmethod
+ def setUpTestData(cls):
slugs = [
'a',
'a/a',