test(settings): History Entry checks for External Link model

ref: #605 closes #635
This commit is contained in:
2025-02-18 02:27:43 +09:30
parent 381ceb723d
commit 69bb6f149f

View File

@ -0,0 +1,34 @@
from django.test import TestCase
from core.tests.abstract.test_functional_history import HistoryEntriesCommon
from settings.models.external_link_history import ExternalLink, ExternalLinkHistory
class History(
HistoryEntriesCommon,
TestCase,
):
model = ExternalLink
history_model = ExternalLinkHistory
@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()