Skip to content

Commit

Permalink
Fixing test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rameshraghupathy committed Dec 12, 2024
1 parent decce6c commit 499d551
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/process-reboot-cause_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_process_reboot_cause(self, mock_geteuid, mock_stdout, mock_is_smartswit
@patch("process_reboot_cause.device_info.is_smartswitch", return_value=True)
@patch("sys.stdout", new_callable=StringIO)
@patch("os.geteuid", return_value=0)
def test_invalid_json(self, mock_geteuid, mock_stdout, mock_is_smartswitch, mock_connector, mock_exists, mock_isfile, mock_listdir):
def test_invalid_json(self, mock_geteuid, mock_stdout, mock_is_smartswitch, mock_connector, mock_exists, mock_isfile, mock_listdir, mock_open):
# Mock DB
mock_db = MagicMock()
mock_connector.return_value = mock_db
Expand Down

0 comments on commit 499d551

Please sign in to comment.