fix: Fixing test due to the change in django32.

Objects assigned to class attributes in TestCase.setUpTestData() are now isolated for each test method.

https://docs.djangoproject.com/en/3.2/releases/3.2/#tests

BOM-2866
This commit is contained in:
Awais Qureshi
2021-10-02 17:04:03 +05:00
parent c5f3d75c2b
commit b3459b3589

View File

@@ -13,7 +13,7 @@ import ddt
import pytz
from dateutil import parser
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.auth.models import User # lint-amnesty, pylint: disable=imported-auth-user
from django.core.files.uploadedfile import SimpleUploadedFile
from django.db.models.signals import post_save
from django.urls import reverse