Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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)