Exemple #1
0
def get_options(worker_model):
    option_list = (manager_worker_broker.runtime_options() +
                   printing.print_options() +
                   [optparse.make_option("--experimental-fully-parallel", default=False),
                    optparse.make_option("--child-processes", default='2')])
    parser = optparse.OptionParser(option_list=option_list)
    options, args = parser.parse_args(args=['--worker-model', worker_model])
    return options
Exemple #2
0
 def test_runtime_options(self):
     option_list = manager_worker_broker.runtime_options()
     parser = optparse.OptionParser(option_list=option_list)
     options, args = parser.parse_args([])
     self.assertTrue(options)
Exemple #3
0
 def test_runtime_options(self):
     option_list = manager_worker_broker.runtime_options()
     parser = optparse.OptionParser(option_list=option_list)
     options, args = parser.parse_args([])
     self.assertTrue(options)