test(access): Add Serializer unit test suit for model Person

ref: #893 #878
This commit is contained in:
2025-07-26 07:34:25 +09:30
parent c089b6fdf4
commit b0b7208eaa
4 changed files with 50 additions and 0 deletions

View File

@ -16,3 +16,9 @@ def model_kwargs(request, kwargs_person):
if hasattr(request.cls, 'kwargs_create_item'):
del request.cls.kwargs_create_item
@pytest.fixture( scope = 'class')
def model_serializer(serializer_person):
yield serializer_person

View File

@ -0,0 +1,28 @@
import pytest
from access.tests.unit.entity.test_unit_entity_serializer import (
EntitySerializerInheritedCases
)
@pytest.mark.model_person
class PersonSerializerTestCases(
EntitySerializerInheritedCases
):
pass
class PersonSerializerInheritedCases(
PersonSerializerTestCases
):
pass
@pytest.mark.module_access
class PersonSerializerPyTest(
PersonSerializerTestCases
):
pass