Skip to content

Commit

Permalink
Resolve code coverage error by a new unit test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ecsonic committed Jun 24, 2024
1 parent f5622df commit ab66ffc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/component_base_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from sonic_platform_base.component_base import ComponentBase

class TestComponentBase:

def test_get_firmware_update_notification(self):
cpnt = ComponentBase()
assert(cpnt.get_firmware_update_notification(None) == "None")

0 comments on commit ab66ffc

Please sign in to comment.