def acceptance_yaml_for_test(test_case):
 _ENV_VAR = 'ACCEPTANCE_YAML'
 filename = environ.get(_ENV_VAR)
 if (not filename):
  test_case.skip('Must set {} to an acceptance.yaml file (http://doc-dev.clusterhq.com/gettinginvolved/appendix.html#acceptance-testing-configuration) plus additional keys in order to run this test.'.format(_ENV_VAR))
 with open(filename) as f:
  config = yaml.safe_load(f)
 return config

def acceptance_yaml_for_test ( test_case ) : _ENV_VAR = 'ACCEPTANCE_YAML' filename = environ . get ( _ENV_VAR ) if ( not filename ) : test_case . skip ( 'Must set {} to an acceptance.yaml file (http://doc-dev.clusterhq.com/gettinginvolved/appendix.html#acceptance-testing-configuration) plus additional keys in order to run this test.' . format ( _ENV_VAR ) ) with open ( filename ) as f : config = yaml . safe_load ( f ) return config
load configuration from a yaml file specified in an environment variable .