test(core): Unit viewset Test Cases for TicketCommentAction model

ref: #754 #736
This commit is contained in:
2025-05-13 19:52:04 +09:30
parent c4ee706591
commit 7c35a2d427
2 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,39 @@
from django.test import TestCase
from core.models.ticket_comment_action import TicketCommentAction
from core.tests.unit.ticket_comment_base.test_unit_ticket_comment_base_viewset import TicketCommentBaseViewsetInheritedCases
class TicketCommentActionViewsetTestCases(
TicketCommentBaseViewsetInheritedCases,
):
@classmethod
def setUpTestData(self):
self.model = TicketCommentAction
super().setUpTestData()
class TicketCommentActionViewsetInheritedCases(
TicketCommentActionViewsetTestCases,
):
"""Test Suite for Sub-Models of TicketBase
Use this Test suit if your sub-model inherits directly from TicketCommentAction.
"""
model: str = None
"""name of the model to test"""
class TicketCommentActionViewsetTest(
TicketCommentActionViewsetTestCases,
TestCase,
):
pass