Recpmfogired tests to run against JayDeBeApi. Ran against pysqlite accidently.
parent
4884cc60d1
commit
5c0255d901
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue