test(devops): Feature Flag History Checks

ref: #662 #661
This commit is contained in:
2025-03-02 00:35:41 +09:30
parent 235e4db5b6
commit 158e8436d8

View File

@ -0,0 +1,35 @@
from django.test import TestCase
from core.tests.abstract.test_functional_history import HistoryEntriesCommon
from devops.models.feature_flag_history import FeatureFlag, FeatureFlagHistory
class History(
HistoryEntriesCommon,
TestCase,
):
model = FeatureFlag
history_model = FeatureFlagHistory
@classmethod
def setUpTestData(self):
super().setUpTestData()
self.obj = self.model.objects.create(
organization = self.organization,
name = self.field_value_original
)
self.obj_delete = self.model.objects.create(
organization = self.organization,
name = self.field_value_delete
)
self.call_the_banners()