Recpmfogired tests to run against JayDeBeApi. Ran against pysqlite accidently.

master
baztian 2011-01-26 13:42:02 +01:00
parent 4884cc60d1
commit 5c0255d901
2 changed files with 13 additions and 3 deletions

View File

@ -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``.

View File

@ -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)