test(itam): History Entry checks for Operating System model
ref: #605 closes #621
This commit is contained in:
@ -0,0 +1,35 @@
|
||||
from django.test import TestCase
|
||||
|
||||
from core.tests.abstract.test_functional_history import HistoryEntriesCommon
|
||||
|
||||
from itam.models.operating_system_history import OperatingSystem, OperatingSystemHistory
|
||||
|
||||
|
||||
|
||||
class History(
|
||||
HistoryEntriesCommon,
|
||||
TestCase,
|
||||
):
|
||||
|
||||
model = OperatingSystem
|
||||
|
||||
history_model = OperatingSystemHistory
|
||||
|
||||
|
||||
@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()
|
Reference in New Issue
Block a user