Closed
Description
Using setUpTestData()
with django-stdimage
in Django 3.2 does not work anymore, as it look like copy.deepcopy()
is not supported with django-stdimage
.
Changed in Django 3.2:
Objects assigned to class attributes in setUpTestData() must support creating deep copies with copy.deepcopy() in order to > isolate them from alterations performed by each test methods. In previous versions of Django these objects were reused > and changes made to them were persisted between test methods.