refactor(tests): Unskip tests that'll work now due to model inheritance change

ref: #871 #771 #395 #859
This commit is contained in:
2025-07-20 12:34:15 +09:30
parent a382561245
commit de87364b9c
17 changed files with 3 additions and 17 deletions

View File

@ -14,7 +14,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class OrganizationValidationAPI(
TestCase,
):

View File

@ -22,7 +22,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class ViewSetBase:
model = Organization

View File

@ -22,7 +22,6 @@ class ModelTestCases(
}
@pytest.mark.skip( reason = 'refactor')
class TeamModelTest(
ModelTestCases,
TestCase,

View File

@ -21,7 +21,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class OrganizationAPI(
TestCase,
APICommonFields

View File

@ -10,7 +10,6 @@ from api.tests.unit.test_unit_common_viewset import ModelViewSetInheritedCases
@pytest.mark.skip( reason = 'to be refactored' )
class OrganizationViewsetList(
ModelViewSetInheritedCases,
TestCase,

View File

@ -15,7 +15,6 @@ from devops.models.check_ins import CheckIn
@pytest.mark.skip( reason = "Audit history requires context['user']")
class Checkin(
TestCase,
):

View File

@ -12,7 +12,7 @@ from devops.serializers.public_feature_flag import FeatureFlag, ViewSerializer
from itam.models.software import Software
@pytest.mark.skip( reason = "Audit history requires context['user']")
class Serializer(
TestCase,
):

View File

@ -16,7 +16,6 @@ from itam.models.software import Software
@pytest.mark.skip( reason = "Audit history requires context['user']")
class ViewSetBase:
model = FeatureFlag

View File

@ -14,7 +14,7 @@ from devops.models.software_enable_feature_flag import SoftwareEnableFeatureFlag
from itam.models.software import Software
@pytest.mark.skip( reason = "Audit history requires context['user']")
class API(
TestCase,
):

View File

@ -11,7 +11,7 @@ from devops.viewsets.public_feature_flag import ViewSet
from itam.models.software import Software
@pytest.mark.skip( reason = "Audit history requires context['user']")
class ViewsetList(
PublicReadOnlyViewSetInheritedCases,
TestCase,

View File

@ -20,7 +20,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class ViewSetBase:
model = DeviceOperatingSystem

View File

@ -55,7 +55,6 @@ class MockRequest:
@pytest.mark.skip( reason = 'to be refactored' )
class SoftwareInstallsValidationAPI(
TestCase,
):

View File

@ -20,7 +20,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class ViewSetBase:
model = DeviceSoftware

View File

@ -24,7 +24,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class OperatingSystemInstallsAPI(
TestCase,
APITenancyObject

View File

@ -24,7 +24,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.skip( reason = 'to be refactored' )
class SoftwareInstallsAPI(
TestCase,
APITenancyObject

View File

@ -11,7 +11,6 @@ from itam.viewsets.device_software import ViewSet
@pytest.mark.skip( reason = 'to be refactored' )
class SoftwareInstallsViewsetList(
ModelViewSetInheritedCases,
TestCase,

View File

@ -24,7 +24,6 @@ User = django.contrib.auth.get_user_model()
@pytest.mark.model_projectstate
@pytest.mark.module_project_management
# @pytest.mark.skip( reason = 'to be re-written' )
class ProjectStateAPI(
TestCase,
APITenancyObject