summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 36ad317)
raw | patch | inline | side by side (parent: 36ad317)
author | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 26 Oct 2003 14:43:51 +0000 (14:43 +0000) | ||
committer | jlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Sun, 26 Oct 2003 14:43:51 +0000 (14:43 +0000) |
error, while it just wouldn't run before.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1946 57a73879-2fb5-44c3-a270-3262357dd7e2
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1946 57a73879-2fb5-44c3-a270-3262357dd7e2
test/test_postgresql.py | patch | blob | history |
index a5308a446aaf3a802b64344dce1aea280e1fcf3d..f96663a847979a98b27ccb6c690c23205a7b8240 100644 (file)
--- a/test/test_postgresql.py
+++ b/test/test_postgresql.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: test_postgresql.py,v 1.1 2003-10-25 22:53:26 richard Exp $
+# $Id: test_postgresql.py,v 1.2 2003-10-26 14:43:51 jlgijsbers Exp $
import unittest, os, shutil, time
from roundup import backends
class postgresqlOpener:
- if hasattr(backends, 'metakit'):
+ if hasattr(backends, 'postgresql'):
from roundup.backends import postgresql as module
def tearDown(self):
try:
# Check if we can run postgresql tests
import psycopg
- db = psycopg.Database(nodbconfig, 'admin')
+ db = postgresql.Database(nodbconfig, 'admin')
db.conn.select_db(config.POSTGRESQL_DBNAME)
db.sql("SHOW TABLES");
tables = db.sql_fetchall()
db.sql("DROP DATABASE %s" % config.POSTGRESQL_DBNAME)
db.sql("CREATE DATABASE %s" % config.POSTGRESQL_DBNAME)
db.close()
- except (MySQLdb.ProgrammingError, DatabaseError), msg:
+ except (psycopg.ProgrammingError, DatabaseError), msg:
print "Skipping postgresql tests (%s)"%msg
else:
print 'Including postgresql tests'