Skip to content

Commit

Permalink
Try to use SerializeMixin in imports
Browse files Browse the repository at this point in the history
  • Loading branch information
kiblik committed Jun 18, 2024
1 parent 9208662 commit 4a2fb83
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions unittests/test_rest_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from unittest.mock import ANY, MagicMock, call, patch

from django.contrib.auth.models import Permission
from django.test.testcases import SerializeMixin
from django.urls import reverse
from drf_spectacular.drainage import GENERATOR_STATS
from drf_spectacular.settings import spectacular_settings
Expand Down Expand Up @@ -1763,7 +1764,7 @@ def test_user_should_not_have_access_to_product_3_in_detail(self):
self.assertEqual(response.status_code, 404)


class ImportScanTest(BaseClass.BaseClassTest):
class ImportScanTest(SerializeMixin, BaseClass.BaseClassTest):
fixtures = ['dojo_testdata.json']

def __init__(self, *args, **kwargs):
Expand Down Expand Up @@ -2017,7 +2018,7 @@ def test_create_authorized_product_name_engagement_name_auto_create_product_type
reimporter_mock.assert_not_called()


class ReimportScanTest(DojoAPITestCase):
class ReimportScanTest(SerializeMixin, DojoAPITestCase):
fixtures = ['dojo_testdata.json']

def setUp(self):
Expand Down Expand Up @@ -2695,7 +2696,7 @@ def __init__(self, *args, **kwargs):
BaseClass.RESTEndpointTest.__init__(self, *args, **kwargs)


class ImportLanguagesTest(BaseClass.BaseClassTest):
class ImportLanguagesTest(SerializeMixin, BaseClass.BaseClassTest):
fixtures = ['dojo_testdata.json']

def __init__(self, *args, **kwargs):
Expand Down

0 comments on commit 4a2fb83

Please sign in to comment.