def after_all(context): """ Unset env parameters. """ dbutils.close_cn(context.cn) dbutils.drop_db(context.conf["host"], context.conf["user"], context.conf["pass"], context.conf["dbname"]) # Restore env vars. for k, v in context.pgenv.items(): if k in os.environ and v is None: del os.environ[k] elif v: os.environ[k] = v
def after_all(context): """ Unset env parameters. """ dbutils.close_cn(context.cn) dbutils.drop_db(context.conf['host'], context.conf['user'], context.conf['pass'], context.conf['dbname'], context.conf['port']) # Remove temp config direcotry shutil.rmtree(context.env_config_home) # Restore env vars. for k, v in context.pgenv.items(): if k in os.environ and v is None: del os.environ[k] elif v: os.environ[k] = v
def after_all(context): """ Unset env parameters. """ dbutils.close_cn(context.cn) dbutils.drop_db(context.conf['host'], context.conf['user'], context.conf['pass'], context.conf['dbname'], context.conf['port']) # Remove temp config direcotry shutil.rmtree(context.env_config_home) # Restore env vars. for k, v in context.pgenv.items(): if k in os.environ and v is None: del os.environ[k] elif v: os.environ[k] = v
def after_all(context): """Unset env parameters.""" dbutils.close_cn(context.cn) dbutils.drop_db(context.conf['host'], context.conf['user'], context.conf['pass'], context.conf['dbname'])
def after_all(context): """Unset env parameters.""" dbutils.close_cn(context.cn) dbutils.drop_db(context.conf['host'], context.conf['user'], context.conf['pass'], context.conf['dbname'])