Lib.jyjdbc.test_sqlite3_dbapi20.py Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jython Show documentation
Show all versions of jython Show documentation
Jython is an implementation of the high-level, dynamic, object-oriented
language Python written in 100% Pure Java, and seamlessly integrated with
the Java platform. It thus allows you to run Python on any Java platform.
#!/usr/bin/env python
# -*- coding: ascii -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
"""Test suite for SQLite.
Uses/requires old/original http://stuartbishop.net/Software/DBAPI20TestSuite/
(also see https://launchpad.net/dbapi-compliance).
Does not use the newer (http://code.google.com/p/acute-dbapi/)
For use with CPython 2.5+
Sample usage:
python test_sqlite3_dbapi20.py
./test_sqlite3_dbapi20.py
"""
import unittest
import os
import sys
import test_jyjdbcsqlite_dbapi20
import sqlite3
class test_PythonSQLite3(test_jyjdbcsqlite_dbapi20.test_JyjdbcSQLite):
driver = sqlite3
connect_args = (test_jyjdbcsqlite_dbapi20.DATABASE_NAME.replace('jdbc:sqlite:', ''),)
connect_kw_args = {}
if __name__ == '__main__':
test_jyjdbcsqlite_dbapi20.main()