diff options
author | James Henstridge <james@jamesh.id.au> | 2008-04-20 23:12:21 +0000 |
---|---|---|
committer | James Henstridge <james@jamesh.id.au> | 2008-04-20 23:12:21 +0000 |
commit | 2f3f4c1258ee6455b8b956c9f9d70a372b5a80f5 (patch) | |
tree | 21cecf1551cdf0b1958ebfba9e1fd5a3f008e313 /tests/test_quote.py | |
parent | 962c5a9a5f359908311cbe0b37b5f257256c4cf5 (diff) | |
download | psycopg2-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-x | tests/test_quote.py | 2 |
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() |