test(core): Refactor TicketCommentSolution model API Fields render test Suite to PyTest
ref: #883 #886 #728
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_ticketcommentsolution):
|
||||
|
||||
request.cls.kwargs_create_item = kwargs_ticketcommentsolution.copy()
|
||||
|
||||
yield kwargs_ticketcommentsolution.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_ticketcommentsolution
|
||||
class TicketCommentSolutionAPITestCases(
|
||||
TicketCommentBaseAPIInheritedCases,
|
||||
TicketCommentBaseAPIFieldsInheritedCases,
|
||||
):
|
||||
|
||||
parameterized_test_data = {}
|
||||
|
||||
kwargs_create_item: dict = {}
|
||||
pass
|
||||
|
||||
|
||||
|
||||
@ -21,9 +19,7 @@ class TicketCommentSolutionAPIInheritedCases(
|
||||
TicketCommentSolutionAPITestCases,
|
||||
):
|
||||
|
||||
kwargs_create_item: dict = {None}
|
||||
|
||||
model = None
|
||||
pass
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user