summaryrefslogtreecommitdiff
path: root/tests/test_quote.py
diff options
context:
space:
mode:
authorJames Henstridge <james@jamesh.id.au>2008-04-20 23:12:21 +0000
committerJames Henstridge <james@jamesh.id.au>2008-04-20 23:12:21 +0000
commit2f3f4c1258ee6455b8b956c9f9d70a372b5a80f5 (patch)
tree21cecf1551cdf0b1958ebfba9e1fd5a3f008e313 /tests/test_quote.py
parent962c5a9a5f359908311cbe0b37b5f257256c4cf5 (diff)
downloadpsycopg2-2f3f4c1258ee6455b8b956c9f9d70a372b5a80f5.tar.gz
2008-04-21 Jorgen Austvik <Jorgen.Austvik@sun.com>
* tests/*.py: use the DSN constructed in tests/__init__.py. * tests/__init__.py: allow setting the host, port and user for the DSN used by the tests through the environment.
Diffstat (limited to 'tests/test_quote.py')
-rwxr-xr-xtests/test_quote.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_quote.py b/tests/test_quote.py
index 0603032..62e7776 100755
--- a/tests/test_quote.py
+++ b/tests/test_quote.py
@@ -23,7 +23,7 @@ class QuotingTestCase(unittest.TestCase):
http://www.postgresql.org/docs/8.1/static/runtime-config-compatible.html
"""
def setUp(self):
- self.conn = psycopg2.connect("dbname=%s" % tests.dbname)
+ self.conn = psycopg2.connect(tests.dsn)
def tearDown(self):
self.conn.close()