Пример #1
0
 def test_no_work_prov(self):
     obj = Service()
     obj.engine = EngineEmul()
     obj.engine.config[Provisioning.PROV] = 'cloud'
     self.assertFalse(obj.should_run())
     obj.parameters['run-at'] = 'cloud'
     self.assertTrue(obj.should_run())
Пример #2
0
 def __init__(self):
     super(SeleniumExecutor, self).__init__()
     self.additional_env = {}
     self.end_time = None
     self.runner = None
     self.script = None
     self.generated_methods = BetterDict()
     self.runner_working_dir = None
     self.virtual_display_service = Service()  # TODO: remove compatibility with deprecated virtual-display setting
Пример #3
0
 def test_no_work_prov(self):
     obj = Service()
     obj.engine = EngineEmul()
     obj.engine.config[Provisioning.PROV] = 'cloud'
     obj.parameters['run-at'] = 'local'
     self.assertFalse(obj.should_run())
     obj.parameters['run-at'] = 'cloud'
     self.assertTrue(obj.should_run())
Пример #4
0
 def __init__(self):
     super(SeleniumExecutor, self).__init__()
     self.additional_env = {}
     self.end_time = None
     self.runner = None
     self.script = None
     self.runner_working_dir = None
     self.register_reader = True
     self.virtual_display_service = Service()  # TODO: remove compatibility with deprecated virtual-display setting
     self.webdrivers = []