test(core): Refactor TicketCommentAction model API Fields render test Suite to PyTest
ref: #883 #885 #736
This commit is contained in:
@ -12,3 +12,11 @@ def model(request):
|
||||
yield request.cls.model
|
||||
|
||||
del request.cls.model
|
||||
|
||||
|
||||
@pytest.fixture( scope = 'class', autouse = True)
|
||||
def model_kwargs(request, kwargs_ticketcommentaction):
|
||||
|
||||
request.cls.kwargs_create_item = kwargs_ticketcommentaction.copy()
|
||||
|
||||
yield kwargs_ticketcommentaction.copy()
|
||||
|
@ -1,19 +1,17 @@
|
||||
import pytest
|
||||
|
||||
from core.tests.unit.ticket_comment_base.test_unit_ticket_comment_base_api_fields import (
|
||||
TicketCommentBaseAPIInheritedCases
|
||||
from core.tests.functional.ticket_comment_base.test_functional_ticket_comment_base_api_fields import (
|
||||
TicketCommentBaseAPIFieldsInheritedCases
|
||||
)
|
||||
|
||||
|
||||
|
||||
@pytest.mark.model_ticketcommentaction
|
||||
class TicketCommentActionAPITestCases(
|
||||
TicketCommentBaseAPIInheritedCases,
|
||||
TicketCommentBaseAPIFieldsInheritedCases,
|
||||
):
|
||||
|
||||
parameterized_test_data = {}
|
||||
|
||||
kwargs_create_item: dict = {}
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@ -21,9 +19,7 @@ class TicketCommentActionAPIInheritedCases(
|
||||
TicketCommentActionAPITestCases,
|
||||
):
|
||||
|
||||
kwargs_create_item: dict = {None}
|
||||
|
||||
model = None
|
||||
pass
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user