summaryrefslogtreecommitdiffstats
path: root/tests/utils.py
diff options
context:
space:
mode:
authorAmjith Ramanujam <amjith.r@gmail.com>2015-02-06 22:58:59 -0800
committerAmjith Ramanujam <amjith.r@gmail.com>2015-02-06 22:58:59 -0800
commitc5c3047b9017c1683b3b7a25c9b7ae8f4f6455a0 (patch)
treeb1d6479ea983ad0b6f93c129c3b49e7417748a88 /tests/utils.py
parent1ec028401892dfb237e4d3c96b6696d12e6efb7c (diff)
Convert to use cffi. But unicode isn't working.
Diffstat (limited to 'tests/utils.py')
-rw-r--r--tests/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/utils.py b/tests/utils.py
index 9b7376f1..158fa1e3 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,5 +1,5 @@
import pytest
-import psycopg2
+import psycopg2cffi
from pgcli.main import format_output
# TODO: should this be somehow be divined from environment?
@@ -7,7 +7,7 @@ POSTGRES_USER, POSTGRES_HOST = 'postgres', 'localhost'
def db_connection(dbname=None):
- conn = psycopg2.connect(user=POSTGRES_USER, host=POSTGRES_HOST, dbname=dbname)
+ conn = psycopg2cffi.connect(user=POSTGRES_USER, host=POSTGRES_HOST, dbname=dbname)
conn.autocommit = True
return conn