コード例 #1
0
ファイル: actioncommand_test.py プロジェクト: kesre/Tron
 def test_create_action_command_with_simple_runner(self):
     status_path, exec_path = '/tmp/what', '/remote/bin'
     config = schema.ConfigActionRunner('subprocess', status_path,
                                        exec_path)
     factory = actioncommand.create_action_runner_factory_from_config(
         config)
     assert_equal(factory.status_path, status_path)
     assert_equal(factory.exec_path, exec_path)
コード例 #2
0
 def test_create_default_action_command(self):
     config = schema.ConfigActionRunner(
         schema.ActionRunnerTypes.none.value, None, None,
     )
     factory = actioncommand.create_action_runner_factory_from_config(
         config,
     )
     assert type(factory) is actioncommand.NoActionRunnerFactory
コード例 #3
0
ファイル: actioncommand_test.py プロジェクト: kesre/Tron
 def test_create_default_action_command(self):
     config = schema.ConfigActionRunner('none', None, None)
     factory = actioncommand.create_action_runner_factory_from_config(
         config)
     assert_equal(factory, actioncommand.NoActionRunnerFactory)