test(assistance): History Entry checks for Knowledge base model

ref: #605 closes #609
This commit is contained in:
2025-02-18 02:17:51 +09:30
parent 77786d28e7
commit 80fa12b747

View File

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