diff options
| author | Simon Charette <charette.s@gmail.com> | 2018-11-23 21:24:25 -0500 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-15 20:22:56 +0200 |
| commit | 94f63b926fd32d7a7b6e2591ef72aa8f040f25cc (patch) | |
| tree | 427aa4855f08fa75d386118765fcb0035ea07052 /tests/queries/test_bulk_update.py | |
| parent | 3cf80d3fcf7446afdde16a2be515c423f720e54d (diff) | |
Refs #31395 -- Relied on setUpTestData() test data isolation in various tests.
Diffstat (limited to 'tests/queries/test_bulk_update.py')
| -rw-r--r-- | tests/queries/test_bulk_update.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/queries/test_bulk_update.py b/tests/queries/test_bulk_update.py index ec43c86691..be794df718 100644 --- a/tests/queries/test_bulk_update.py +++ b/tests/queries/test_bulk_update.py @@ -12,8 +12,9 @@ from .models import ( class BulkUpdateNoteTests(TestCase): - def setUp(self): - self.notes = [ + @classmethod + def setUpTestData(cls): + cls.notes = [ Note.objects.create(note=str(i), misc=str(i)) for i in range(10) ] |
