Пример #1
0
 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()
Пример #2
0
 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")
Пример #3
0
 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")