Skip to content

Commit

Permalink
Added test file for sfp_optoe_base.py to improve code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mihirpat1 committed Sep 16, 2023
1 parent 2dd5f99 commit 879690a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/sonic_xcvr/test_sfp_optoe_base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from unittest.mock import patch
from mock import MagicMock
import pytest
from sonic_platform_base.sonic_xcvr.sfp_optoe_base import SfpOptoeBase

class TestSfpOptoeBase(object):
optoebase = SfpOptoeBase()

def test_set_optoe_write_max_with_exception(self):
self.optoebase.set_optoe_write_max(1)

0 comments on commit 879690a

Please sign in to comment.