def test_init(self, entry_points, entry_point): _init_plugins() entry_points.assert_called_once_with(group="kedro.init") entry_point.load().assert_called_once_with()
def test_init_error_is_caught(self, entry_points, entry_point): entry_point.load.side_effect = Exception() _init_plugins() entry_points.assert_called_once_with(group="kedro.init")
def test_init_error_is_caught(self, entry_points, entry_point): entry_point.load.side_effect = Exception() with raises(KedroCliError, match="Initializing"): _init_plugins() entry_points.assert_called_once_with(group="kedro.init")