Skip to content

Commit ab66ffc

Browse files
author
ecsonic
committed
Resolve code coverage error by a new unit test case
1 parent f5622df commit ab66ffc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/component_base_test.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from sonic_platform_base.component_base import ComponentBase
2+
3+
class TestComponentBase:
4+
5+
def test_get_firmware_update_notification(self):
6+
cpnt = ComponentBase()
7+
assert(cpnt.get_firmware_update_notification(None) == "None")

0 commit comments

Comments
 (0)