Skip to content

Commit

Permalink
test code correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaganathan Anbalagan committed Nov 28, 2023
1 parent fbf8c83 commit 79d89b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/sonic_xcvr/test_ccmis.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ def test_get_vdm_freeze_status(self, mock_response, expected):
def test_get_vdm_unfreeze_status(self, mock_response, expected):
self.api.xcvr_eeprom.read = MagicMock()
self.api.xcvr_eeprom.read.return_value = mock_response
result = self.api.get_vdm_unfreeze_stats()
result = self.api.get_vdm_unfreeze_status()
assert result == expected

@pytest.mark.parametrize("mock_response, expected", [
Expand Down
6 changes: 3 additions & 3 deletions tests/sonic_xcvr/test_sfp_optoe_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_freeze_vdm_stats(self, mock_response1, mock_response2, expected):
@pytest.mark.parametrize("mock_response1, mock_response2, expected", [
(0, ccmis_api, 0),
(1, ccmis_api, 1),
(None, None, None),
(None, None, False),
])
def test_unfreeze_vdm_stats(self, mock_response1, mock_response2, expected):
self.sfp_optoe_api.get_xcvr_api = MagicMock()
Expand All @@ -47,7 +47,7 @@ def test_unfreeze_vdm_stats(self, mock_response1, mock_response2, expected):
@pytest.mark.parametrize("mock_response1, mock_response2, expected", [
(0, ccmis_api, 0),
(1, ccmis_api, 1),
(None, None, None),
(None, None, False),
])
def test_get_vdm_freeze_status(self, mock_response1, mock_response2, expected):
self.sfp_optoe_api.get_xcvr_api = MagicMock()
Expand All @@ -61,7 +61,7 @@ def test_get_vdm_freeze_status(self, mock_response1, mock_response2, expected):
@pytest.mark.parametrize("mock_response1, mock_response2, expected", [
(0, ccmis_api, 0),
(1, ccmis_api, 1),
(None, None, None),
(None, None, False),
])
def test_get_vdm_unfreeze_status(self, mock_response1, mock_response2, expected):
self.sfp_optoe_api.get_xcvr_api = MagicMock()
Expand Down

0 comments on commit 79d89b0

Please sign in to comment.