Recpmfogired tests to run against JayDeBeApi. Ran against pysqlite accidently.
This commit is contained in:
@@ -15,6 +15,12 @@ Build a new release
|
||||
|
||||
2. Do your changes.
|
||||
|
||||
3. Assert the right connect method is configured for tests.
|
||||
|
||||
4. Run test suite. ::
|
||||
|
||||
$ nosetests
|
||||
|
||||
3. Add a changelog entry to ``README.rst``.
|
||||
|
||||
4. Increase version in ``setup.py``.
|
||||
|
||||
@@ -68,11 +68,15 @@ class IntegrationTest(TestCase):
|
||||
jpype.attachThreadToJVM()
|
||||
|
||||
def connect(self):
|
||||
# rename the latter connect method to run tests against
|
||||
# pysqlite
|
||||
msg = "Warinng: Your are not running the tests against JayDeBeApi."
|
||||
print >> sys.stderr, msg
|
||||
import sqlite3
|
||||
return sqlite3.connect(':memory:')
|
||||
|
||||
def connect_(self):
|
||||
jar_names = [ 'hsqldb.jar', 'sqlitejdbc-v056.jar', 'sqlite.jar' ]
|
||||
def connect(self):
|
||||
jar_names = [ 'sqlitejdbc-v056.jar', 'hsqldb.jar', 'sqlite.jar' ]
|
||||
jars = [ path.join(jar_dir, i) for i in jar_names ]
|
||||
if is_jython():
|
||||
sys.path.extend(jars)
|
||||
@@ -93,7 +97,7 @@ class IntegrationTest(TestCase):
|
||||
# conn = jaydebeapi.connect('SQLite.JDBCDriver',
|
||||
# 'jdbc:sqlite:/:memory:')
|
||||
return conn
|
||||
|
||||
|
||||
def setUp(self):
|
||||
self.conn = self.connect()
|
||||
self.sql_file(create_sql)
|
||||
|
||||
Reference in New Issue
Block a user