refactor(access): ViewSet TestSuite re-written to pytest for model Person

ref: #897 #878
This commit is contained in:
2025-07-28 11:21:51 +09:30
parent 123828d96d
commit 464bf0da1d

View File

@ -1,7 +1,5 @@
import pytest
from django.test import TestCase
from access.models.person import Person
from access.tests.unit.entity.test_unit_entity_viewset import (
EntityViewsetInheritedCases
@ -14,7 +12,15 @@ class ViewsetTestCases(
EntityViewsetInheritedCases,
):
model: str = Person
@property
def parameterized_class_attributes(self):
return {
'model': {
'value': Person
}
}
@ -26,15 +32,13 @@ class PersonViewsetInheritedCases(
Test Cases for Entity models that inherit from model Person
"""
model: str = None
"""name of the model to test"""
pass
@pytest.mark.module_access
class PersonViewsetTest(
class PersonViewsetPyTest(
ViewsetTestCases,
TestCase,
):
pass