diff --git a/tests/process-reboot-cause_test.py b/tests/process-reboot-cause_test.py index a9ad5155..ba865ad3 100644 --- a/tests/process-reboot-cause_test.py +++ b/tests/process-reboot-cause_test.py @@ -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