Skip to content

Commit

Permalink
Removed changes in chassis base tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bmridul authored and prgeor committed Mar 4, 2024
1 parent 1688763 commit a5a3c3f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions tests/chassis_base_test.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
from sonic_platform_base.chassis_base import ChassisBase
from unittest.mock import MagicMock, patch

class TestChassisBase:

@patch('sonic_py_common.device_info.get_paths_to_platform_and_hwsku_dirs', MagicMock(return_value=('/tmp', None)))
def test_reboot_cause(self):
chassis = ChassisBase()
assert(chassis.REBOOT_CAUSE_POWER_LOSS == "Power Loss")
Expand All @@ -19,7 +17,6 @@ def test_reboot_cause(self):
assert(chassis.REBOOT_CAUSE_HARDWARE_RESET_FROM_ASIC == "Reset from ASIC")
assert(chassis.REBOOT_CAUSE_NON_HARDWARE == "Non-Hardware")

@patch('sonic_py_common.device_info.get_paths_to_platform_and_hwsku_dirs', MagicMock(return_value=('/tmp', None)))
def test_chassis_base(self):
chassis = ChassisBase()
not_implemented_methods = [
Expand All @@ -38,7 +35,6 @@ def test_chassis_base(self):

assert exception_raised

@patch('sonic_py_common.device_info.get_paths_to_platform_and_hwsku_dirs', MagicMock(return_value=('/tmp', None)))
def test_sensors(self):
chassis = ChassisBase()
assert(chassis.get_num_voltage_sensors() == 0)
Expand Down

0 comments on commit a5a3c3f

Please sign in to comment.