test(itam): Functional History Test Cases for ITAMAssetBase

ref: #742 #692
This commit is contained in:
2025-05-08 13:41:41 +09:30
parent f79f796a14
commit acff19ad58

View File

@ -0,0 +1,38 @@
from django.test import TestCase
from accounting.models.asset_base_history import AssetBase, AssetBaseHistory
from core.tests.abstract.test_functional_history import HistoryEntriesCommon
class History(
HistoryEntriesCommon,
TestCase,
):
model = AssetBase
history_model = AssetBaseHistory
@classmethod
def setUpTestData(self):
super().setUpTestData()
self.field_name = 'asset_number'
self.obj = self.model.objects.create(
organization = self.organization,
asset_number = self.field_value_original,
)
self.obj_delete = self.model.objects.create(
organization = self.organization,
asset_number = self.field_value_delete,
)
self.call_the_banners()