Beispiel #1
0
 def test_global_error_is_caught(self, entry_points, entry_point):
     entry_point.load.side_effect = Exception()
     groups = load_entry_points("global")
     assert groups == []
     entry_points.assert_called_once_with(group="kedro.global_commands")
Beispiel #2
0
 def test_global_groups(self, entry_points, entry_point):
     entry_point.load.return_value = "groups"
     groups = load_entry_points("global")
     assert groups == ["groups"]
     entry_points.assert_called_once_with(group="kedro.global_commands")