Exemplo n.º 1
0
    def test_with_config_file(self, full_config, plugin_manager_mock):
        config.execute_config_hooks(full_config)

        # TODO assert with a real value instead of mock.ANY
        plugin_manager_mock.hook.config_hook.assert_called_once_with(
            config_parser=mock.ANY
        )
Exemplo n.º 2
0
def _parse_args(args, config_file):
    config.execute_config_hooks(config_file)
    parsed_args, api = _repobee.cli.parsing.handle_args(
        args, config_file=config_file)
    plug.manager.hook.handle_processed_args(args=parsed_args)
    return parsed_args, api
Exemplo n.º 3
0
 def test_with_no_config_file(self, unused_path, plugin_manager_mock):
     config.execute_config_hooks(config=plug.Config(unused_path))
     assert not plugin_manager_mock.hook.config_hook.called