refactor(devops): API Fields render Functional Test Suite re-written to Pytest for model SoftwareEnableFeatureFlag Again
ref: #946 #945
This commit is contained in:
@ -19,6 +19,12 @@ class SoftwareEnableFeatureFlagAPITestCases(
|
||||
def parameterized_api_fields(self):
|
||||
|
||||
return {
|
||||
'_urls.notes': {
|
||||
'expected': models.NOT_PROVIDED
|
||||
},
|
||||
'model_notes': {
|
||||
'expected': models.NOT_PROVIDED
|
||||
},
|
||||
'software': {
|
||||
'expected': dict
|
||||
},
|
||||
@ -31,12 +37,6 @@ class SoftwareEnableFeatureFlagAPITestCases(
|
||||
'software.url': {
|
||||
'expected': Hyperlink
|
||||
},
|
||||
'name': {
|
||||
'expected': str
|
||||
},
|
||||
'description': {
|
||||
'expected': str
|
||||
},
|
||||
'enabled': {
|
||||
'expected': bool
|
||||
},
|
||||
|
@ -34,8 +34,10 @@ def kwargs_softwareenablefeatureflag(django_db_blocker,
|
||||
**kwargs_soft
|
||||
)
|
||||
|
||||
kwargs = kwargs_centurionmodel.copy()
|
||||
del kwargs['model_notes']
|
||||
kwargs = {
|
||||
**kwargs_centurionmodel.copy(),
|
||||
**kwargs,
|
||||
'software': software,
|
||||
'enabled': True
|
||||
}
|
||||
|
Reference in New Issue
Block a user