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())
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
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())
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 = []