暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

utils.py 444B

1234567891011121314
  1. from plugins.mongodb_datasource.utils import connection
  2. def datasource_tests_init(conn_args):
  3. conn = connection(host=conn_args['host'],
  4. port=conn_args['port'],
  5. username=conn_args['username'],
  6. password=conn_args['password'])
  7. database = conn[conn_args['db_name']]
  8. return (conn, database)
  9. def datasource_tests_db_clean(conn, dbname):
  10. conn.drop_database(dbname)