fix(itim): Ensure during testing, fixture vals are copied for Model Service
ref: #932 #931
This commit is contained in:
@ -170,7 +170,7 @@ class ServiceSerializerTestCases(
|
||||
action = 'create',
|
||||
)
|
||||
|
||||
kwargs = model_kwargs
|
||||
kwargs = model_kwargs.copy()
|
||||
kwargs['is_template'] = True
|
||||
ports = kwargs['port']
|
||||
del kwargs['port']
|
||||
@ -215,7 +215,7 @@ class ServiceSerializerTestCases(
|
||||
action = 'create',
|
||||
)
|
||||
|
||||
kwargs = model_kwargs
|
||||
kwargs = model_kwargs.copy()
|
||||
kwargs['is_template'] = True
|
||||
del kwargs['port']
|
||||
|
||||
@ -255,7 +255,7 @@ class ServiceSerializerTestCases(
|
||||
action = 'create',
|
||||
)
|
||||
|
||||
kwargs = model_kwargs
|
||||
kwargs = model_kwargs.copy()
|
||||
kwargs['is_template'] = True
|
||||
del kwargs['port']
|
||||
del kwargs['device']
|
||||
@ -333,7 +333,7 @@ class ServiceSerializerTestCases(
|
||||
action = 'create',
|
||||
)
|
||||
|
||||
kwargs = kwargs_cluster
|
||||
kwargs = kwargs_cluster.copy()
|
||||
nodes = kwargs['nodes']
|
||||
del kwargs['nodes']
|
||||
cluster = model_cluster.objects.create( **kwargs )
|
||||
@ -379,7 +379,7 @@ class ServiceSerializerTestCases(
|
||||
action = 'create',
|
||||
)
|
||||
|
||||
kwargs = model_kwargs
|
||||
kwargs = model_kwargs.copy()
|
||||
del kwargs['port']
|
||||
root_service = model.objects.create ( **kwargs )
|
||||
root_service.dependent_service.add( created_model )
|
||||
|
Reference in New Issue
Block a user