test(access): Add Serializer unit test suit for model Person
ref: #893 #878
This commit is contained in:
@ -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
|
||||
|
28
app/access/tests/unit/person/test_unit_person_serializer.py
Normal file
28
app/access/tests/unit/person/test_unit_person_serializer.py
Normal 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
|
Reference in New Issue
Block a user