test(core): Partial functional Model Test Suite covering some slash commande for TicketCommentSolution
ref: #744 #728
This commit is contained in:
@ -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
|
||||
|
||||
|
@ -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
|
@ -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
|
Reference in New Issue
Block a user