Skip to content

Commit 501f35c

Browse files
Switch to DojoTestCase for better test compatibility
Use DojoTestCase instead of plain TestCase to align with DefectDojo testing conventions and ensure proper test setup/teardown.
1 parent 5e4110b commit 501f35c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

unittests/test_finding_group_filter_context.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from django.test import TestCase
21
from django.utils.timezone import now
32

43
from dojo.filters import FindingFilter, FindingFilterWithoutObjectLookups
@@ -13,8 +12,10 @@
1312
Test_Type,
1413
)
1514

15+
from .dojo_test_case import DojoTestCase
1616

17-
class TestFindingGroupFilterContext(TestCase):
17+
18+
class TestFindingGroupFilterContext(DojoTestCase):
1819
"""Test that Finding Group filter respects Test/Engagement/Product context."""
1920

2021
@classmethod

0 commit comments

Comments
 (0)