From 7265e6df7e7ae830964d7a39b9ec6e84de41e54b Mon Sep 17 00:00:00 2001 From: Yuval Adam Date: Sat, 9 Oct 2010 18:03:05 +0200 Subject: added dbutils tests --- dbutils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dbutils.py') diff --git a/dbutils.py b/dbutils.py index 2dd8e66..31d56ab 100644 --- a/dbutils.py +++ b/dbutils.py @@ -1,10 +1,11 @@ import cx_Oracle import dbconfig -connStr = '%s/%s@%s' % (dbconfig.USER, dbconfig.PASS, dbconfig.SID) +CONN_STR = '%s/%s@%s' % (dbconfig.USER, dbconfig.PASS, dbconfig.SID) def get_tables(): - with cx_Oracle.connect(connStr) as conn: + with cx_Oracle.connect(CONN_STR) as conn: cur = conn.cursor() cur.execute('SELECT owner, table_name FROM all_tables') return [table for owner, table in cur.fetchall()] + -- cgit v1.3.1