def setup_func(): # Load the template template = load_template(GENAPI_TEMPLATES_CONFIG['GENAPI_BASE']['GENAPI_BASE_TEMPLATE']) # Render the template with substituted values global tpl tpl = template.render( python_interpreter='/usr/bin/python', genapi_start='/usr/bin/genapi_runner.py', logging_level='debug', riak_host='riak1.dev.apitrary.net', app_port=50000, genapi_api_id='abc123abc123abc123abc123', genapi_version=1, genapi_env='dev', genapi_entity_list=entity_list_as_csv(['users', 'contacts']), genapi_api_key='secretkeysecretkey', genapi_home_directory='/home/genapi', genapi_user='******', genapi_log_file='/home/genapi/abc123abc123abc123abc123.log', config_file_name='abc123abc123abc123abc123.conf' )
def setup_func(): # Load the template template = load_template( GENAPI_TEMPLATES_CONFIG['GENAPI_BASE']['GENAPI_BASE_TEMPLATE']) # Render the template with substituted values global tpl tpl = template.render( python_interpreter='/usr/bin/python', genapi_start='/usr/bin/genapi_runner.py', logging_level='debug', riak_host='riak1.dev.apitrary.net', app_port=50000, genapi_api_id='abc123abc123abc123abc123', genapi_version=1, genapi_env='dev', genapi_entity_list=entity_list_as_csv(['users', 'contacts']), genapi_api_key='secretkeysecretkey', genapi_home_directory='/home/genapi', genapi_user='******', genapi_log_file='/home/genapi/abc123abc123abc123abc123.log', config_file_name='abc123abc123abc123abc123.conf')
def test_entity_list_as_csv(): arr = ['1', '2', '3'] comp = '1,2,3' assert comp == entity_list_as_csv(arr)
def test_entity_list_as_csv(): arr = ['1', '2', '3'] comp = '1,2,3' assert comp == entity_list_as_csv(arr)