Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion unittests/test_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from django.conf import settings
from django.contrib.auth.models import User
from django.test import Client
from django.test import Client, override_settings
from django.urls import reverse

from dojo.models import Finding, Product, Test
Expand Down Expand Up @@ -454,6 +454,7 @@ def reimport_scan_with_params(self, test_id, filename, scan_type="ZAP Scan", min
return {"test": new_test_id}


@override_settings(CELERY_TASK_ALWAYS_EAGER=True)
@versioned_fixtures
class InheritedTagsTests(DojoAPITestCase):

Expand Down Expand Up @@ -610,6 +611,7 @@ def test_remove_tag_from_product_then_add_tag_to_product(self):
self.assertEqual(product_tags_post_addition, self._convert_instance_tags_to_list(objects.get("finding")))


@override_settings(CELERY_TASK_ALWAYS_EAGER=True)
@versioned_fixtures
class InheritedTagsImportTestAPI(DojoAPITestCase, InheritedTagsImportMixin):

Expand All @@ -626,6 +628,7 @@ def setUp(self):
InheritedTagsImportMixin.setUp(self)


@override_settings(CELERY_TASK_ALWAYS_EAGER=True)
@versioned_fixtures
class InheritedTagsImportTestUI(DojoAPITestCase, InheritedTagsImportMixin):

Expand Down
Loading