refactor(core): Move CenturionModel logic to Mixin

ref: #805 #767
This commit is contained in:
2025-06-08 12:35:13 +09:30
parent 7ad1851cc0
commit dbdfe4e6c0
12 changed files with 1560 additions and 1327 deletions

View File

@ -1,5 +1,7 @@
import pytest
from django.db import models
from core.tests.unit.centurion_abstract.test_unit_centurion_abstract_model import (
CenturionAbstractModelTestCases,
CenturionAbstractModelInheritedCases,
@ -94,6 +96,14 @@ class CenturionSubAbstractModelPyTest(
def parameterized_class_attributes(self):
return {
'page_layout': {
'type': models.NOT_PROVIDED,
'value': models.NOT_PROVIDED,
},
'table_fields': {
'type': models.NOT_PROVIDED,
'value': models.NOT_PROVIDED,
},
'model_tag': {
'type': type(None),
'value': None,

View File

@ -0,0 +1,16 @@
import pytest
@pytest.fixture( scope = 'class')
def model(mixin_centurion):
yield mixin_centurion
@pytest.fixture( scope = 'class', autouse = True)
def model_kwargs(request):
request.cls.kwargs_create_item = {}
yield {}

File diff suppressed because it is too large Load Diff