test(itim): History Entry checks for Cluster model

ref: #605 closes #626
This commit is contained in:
2025-02-18 02:23:03 +09:30
parent 334dbfdf7f
commit 2a14cd6119

View File

@ -0,0 +1,35 @@
from django.test import TestCase
from core.tests.abstract.test_functional_history import HistoryEntriesCommon
from itim.models.cluster_history import Cluster, ClusterHistory
class History(
HistoryEntriesCommon,
TestCase,
):
model = Cluster
history_model = ClusterHistory
@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()