From 1785b6d8777d490f1ce8c03c0b9eb7a008c69987 Mon Sep 17 00:00:00 2001 From: Anoop Kamath <115578705+AnoopKamath@users.noreply.github.com> Date: Fri, 4 Oct 2024 00:12:47 -0700 Subject: [PATCH] Update test_cmis.py --- tests/sonic_xcvr/test_cmis.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/sonic_xcvr/test_cmis.py b/tests/sonic_xcvr/test_cmis.py index 08084bce5..a5054f1aa 100644 --- a/tests/sonic_xcvr/test_cmis.py +++ b/tests/sonic_xcvr/test_cmis.py @@ -1012,7 +1012,7 @@ def test_reset(self): assert kall[0] == (consts.MODULE_LEVEL_CONTROL, 0x8) @pytest.mark.parametrize("lpmode", [ - ([True], [False]) + True, False ]) def test_set_low_power(self, lpmode): self.api.xcvr_eeprom.read = MagicMock() @@ -1024,6 +1024,8 @@ def test_set_low_power(self, lpmode): self.api.get_lpmode_support = MagicMock() self.api.get_lpmode_support.return_value = True self.api.get_module_state = MagicMock() + self.api.get_lpmode = MagicMock() + self.api.get_lpmode.return_value = True self.api.get_module_state.return_value = "ModuleReady" self.api.set_lpmode(lpmode)