def make_config(): test_conf = AirflowConfigParser(default_config='') # Guarantee we have a deprecated setting, so we test the deprecation # lookup even if we remove this explicit fallback test_conf.deprecated_values = { 'core': { 'task_runner': ('BashTaskRunner', 'StandardTaskRunner', '2.0'), }, } test_conf.read_dict({ 'core': { 'executor': 'SequentialExecutor', 'task_runner': 'BashTaskRunner', 'sql_alchemy_conn': 'sqlite://', }, }) return test_conf
def make_config(): test_conf = AirflowConfigParser(default_config='') # Guarantee we have a deprecated setting, so we test the deprecation # lookup even if we remove this explicit fallback test_conf.deprecated_values = { 'core': { 'hostname_callable': (re.compile(r':'), r'.', '2.1'), }, } test_conf.read_dict({ 'core': { 'executor': 'SequentialExecutor', 'sql_alchemy_conn': 'sqlite://', 'hostname_callable': 'socket:getfqdn', }, }) return test_conf