test(core): Refactor TicketCommentSolution model API Fields render test Suite to PyTest

ref: #883 #886 #728
This commit is contained in:
2025-07-24 18:23:53 +09:30
parent daf68103ad
commit 82bbf88c6f
2 changed files with 13 additions and 9 deletions

View File

@ -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()

View File

@ -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