def test_env_vars_folded_into_desired_capabilities(self): config_reader = MockAppiumConfigWithSauceLabs() path_to_app = "//:path_to_app" env_vars_stub = {WebDriverFactory.DESIRED_CAPABILITIES_ENV_PREFIX + "app": path_to_app} driver_factory = WebDriverFactory(config_reader=config_reader, env_vars=env_vars_stub) # Set an env variable WTF_selenium_desired_capabilities_app dc = driver_factory._generate_desired_capabilities("mytest") self.assertEqual(path_to_app, dc['app'])
def test_env_vars_folded_into_desired_capabilities(self): config_reader = MockAppiumConfigWithSauceLabs() path_to_app = "//:path_to_app" env_vars_stub = { WebDriverFactory.DESIRED_CAPABILITIES_ENV_PREFIX + "app": path_to_app } driver_factory = WebDriverFactory(config_reader=config_reader, env_vars=env_vars_stub) # Set an env variable WTF_selenium_desired_capabilities_app dc = driver_factory._generate_desired_capabilities("mytest") self.assertEqual(path_to_app, dc['app'])