def parse_config(filename, settings): filename = _nicepath(filename) if filename is None: return None # side effect, populates settings dictionary config = load_into_settings(filename, settings) # handle ca_bundle ca_bundle = settings['qdo-worker.ca_bundle'] if ca_bundle: ca_bundle = _nicepath(ca_bundle) if ca_bundle is not None: os.environ['REQUESTS_CA_BUNDLE'] = ca_bundle log.configure(settings.getsection('metlog')) return config
def setup(): """Shared one-time test setup, called from tests/__init__.py""" log.configure(None, debug=True) setup_supervisor() ensure_process('queuey')