Skip to content

Commit

Permalink
tests: refactored unit test accordingly
Browse files Browse the repository at this point in the history
  • Loading branch information
viniarck committed Sep 26, 2023
1 parent f4432f9 commit af3568c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/test_core/test_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,15 +194,13 @@ def test_start_error_broad_exception(self, *args):
mock_start_controller, mock_db_conn_or_shutdown,
mock_init_apm_or_shutdown, mock_sys) = args
mock_start_controller.side_effect = Exception
self.controller.log = MagicMock()
self.controller.start()

mock_enable_logs.assert_called()
mock_create_pidfile.assert_called()
mock_start_controller.assert_called()
mock_db_conn_or_shutdown.assert_not_called()
mock_init_apm_or_shutdown.assert_not_called()
self.controller.log.exception.assert_called()
mock_sys.exit.assert_called()

@patch('kytos.core.controller.Controller.init_apm_or_core_shutdown')
Expand Down

0 comments on commit af3568c

Please sign in to comment.