mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Refs #31395 -- Relied on setUpTestData() test data isolation in various tests.
This commit is contained in:
committed by
Mariusz Felisiak
parent
3cf80d3fcf
commit
94f63b926f
@@ -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)
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user