refactor(tests): Unskip tests that'll work now due to model inheritance change
ref: #871 #771 #395 #859
This commit is contained in:
@ -14,7 +14,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class OrganizationValidationAPI(
|
||||
TestCase,
|
||||
):
|
||||
|
@ -22,7 +22,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class ViewSetBase:
|
||||
|
||||
model = Organization
|
||||
|
@ -22,7 +22,6 @@ class ModelTestCases(
|
||||
}
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'refactor')
|
||||
class TeamModelTest(
|
||||
ModelTestCases,
|
||||
TestCase,
|
||||
|
@ -21,7 +21,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class OrganizationAPI(
|
||||
TestCase,
|
||||
APICommonFields
|
||||
|
@ -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,
|
||||
|
@ -15,7 +15,6 @@ from devops.models.check_ins import CheckIn
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = "Audit history requires context['user']")
|
||||
class Checkin(
|
||||
TestCase,
|
||||
):
|
||||
|
@ -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,
|
||||
):
|
||||
|
@ -16,7 +16,6 @@ from itam.models.software import Software
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = "Audit history requires context['user']")
|
||||
class ViewSetBase:
|
||||
|
||||
model = FeatureFlag
|
||||
|
@ -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,
|
||||
):
|
||||
|
@ -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,
|
||||
|
@ -20,7 +20,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class ViewSetBase:
|
||||
|
||||
model = DeviceOperatingSystem
|
||||
|
@ -55,7 +55,6 @@ class MockRequest:
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class SoftwareInstallsValidationAPI(
|
||||
TestCase,
|
||||
):
|
||||
|
@ -20,7 +20,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class ViewSetBase:
|
||||
|
||||
model = DeviceSoftware
|
||||
|
@ -24,7 +24,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class OperatingSystemInstallsAPI(
|
||||
TestCase,
|
||||
APITenancyObject
|
||||
|
@ -24,7 +24,6 @@ User = django.contrib.auth.get_user_model()
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class SoftwareInstallsAPI(
|
||||
TestCase,
|
||||
APITenancyObject
|
||||
|
@ -11,7 +11,6 @@ from itam.viewsets.device_software import ViewSet
|
||||
|
||||
|
||||
|
||||
@pytest.mark.skip( reason = 'to be refactored' )
|
||||
class SoftwareInstallsViewsetList(
|
||||
ModelViewSetInheritedCases,
|
||||
TestCase,
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user