Skip to content

Commit

Permalink
add deepcopy in UTs
Browse files Browse the repository at this point in the history
  • Loading branch information
VenkateshRavula committed May 3, 2021
1 parent d384b96 commit 46cccf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_oneview_logical_interconnect_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,10 @@ def test_update_when_data_has_modified_uplinkset_attributes(self):
)

def test_should_not_update_when_data_has_same_uplinkset_attributes(self):
self.resource.data = PARAMS_LIG_TEMPLATE_WITH_MAP['data']
self.resource.data = deepcopy(PARAMS_LIG_TEMPLATE_WITH_MAP['data'])
self.resource.get_by_name.return_value = self.resource
# self.mock_ov_client.logical_interconnect_groups.get_by.return_value = UPLINK_SETS
self.mock_ansible_module.params = PARAMS_LIG_TEMPLATE_WITH_MAP
self.mock_ansible_module.params = deepcopy(PARAMS_LIG_TEMPLATE_WITH_MAP)

LogicalInterconnectGroupModule().run()

Expand Down

0 comments on commit 46cccf1

Please sign in to comment.