diff options
| author | Simon Charette <charette.s@gmail.com> | 2018-11-23 20:59:38 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-11-27 09:35:17 -0500 |
| commit | 84e7a9f4a7bb3cad2bffae97baaae99de152c451 (patch) | |
| tree | c81eeb6edf47ce0abdb7551cd28a3de354dfd20f /tests/model_fields | |
| parent | 9a7d336c3866c5226ed11868be0234c7e2fa47fa (diff) | |
Switched setUp() to setUpTestData() where possible in Django's tests.
Diffstat (limited to 'tests/model_fields')
| -rw-r--r-- | tests/model_fields/test_uuid.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/model_fields/test_uuid.py b/tests/model_fields/test_uuid.py index 40fc82812f..c07d064d4d 100644 --- a/tests/model_fields/test_uuid.py +++ b/tests/model_fields/test_uuid.py @@ -82,8 +82,9 @@ class TestMethods(SimpleTestCase): class TestQuerying(TestCase): - def setUp(self): - self.objs = [ + @classmethod + def setUpTestData(cls): + cls.objs = [ NullableUUIDModel.objects.create(field=uuid.uuid4()), NullableUUIDModel.objects.create(field='550e8400e29b41d4a716446655440000'), NullableUUIDModel.objects.create(field=None), |
