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

ref: #897 #879
This commit is contained in:
2025-07-28 11:20:35 +09:30
parent 3ed7471c15
commit a72e153aa3

View File

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