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

ref: #883 #885 #736
This commit is contained in:
2025-07-24 18:21:50 +09:30
parent 8159799afc
commit daf68103ad
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_ticketcommentaction):
request.cls.kwargs_create_item = kwargs_ticketcommentaction.copy()
yield kwargs_ticketcommentaction.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_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