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

ref: #897 #880
This commit is contained in:
2025-07-28 11:19:27 +09:30
parent c85b666a84
commit 3ed7471c15

View File

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