test(core): Partial functional Model Test Suite covering some slash commande for TicketCommentSolution

ref: #744 #728
This commit is contained in:
2025-05-10 23:40:41 +09:30
parent 40b51f1a77
commit 70c835eb93
3 changed files with 43 additions and 1 deletions

View File

@ -62,7 +62,7 @@ class TicketCommentBaseModelTestCases(
ticket_comment.ticket = ticket
ticket_comment.comment_type = 'comment'
ticket_comment.comment_type = model._meta.sub_model_type
yield ticket_comment

View File

@ -0,0 +1,14 @@
import pytest
from core.models.ticket_comment_solution import TicketCommentSolution
@pytest.fixture( scope = 'class')
def model(request):
request.cls.model = TicketCommentSolution
yield request.cls.model
del request.cls.model

View File

@ -0,0 +1,28 @@
from core.tests.functional.ticket_comment_base.test_functional_ticket_comment_base_model import TicketCommentBaseModelInheritedTestCases
class TicketCommentSolutionModelTestCases(
TicketCommentBaseModelInheritedTestCases
):
pass
# check closes ticket
# check ticket status changes to solved
class TicketCommentSolutionModelInheritedTestCases(
TicketCommentSolutionModelTestCases
):
pass
class TicketCommentSolutionModelPyTest(
TicketCommentSolutionModelTestCases
):
pass