Skip to content

Commit 5184f95

Browse files
Fix UT coverage
1 parent edb3a9b commit 5184f95

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/sonic_xcvr/test_cmis.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,3 +3005,8 @@ def test_create_cdb_fw_handler(self, mock_cdb_support):
30053005
assert self.api._create_cdb_fw_handler() is None
30063006
mock_cdb_support.return_value = True
30073007
assert self.api._create_cdb_fw_handler()
3008+
3009+
with patch.object(self.api, '_init_cdb_fw_handler', new=False):
3010+
assert self.api.cdb_fw_hdlr is None
3011+
with patch.object(self.api, '_init_cdb_fw_handler', new=True):
3012+
assert self.api.cdb_fw_hdlr is not None

0 commit comments

Comments
 (0)