All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.jyjdbc.test_sqlite3_dbapi20.py Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 2.7.4
Show newest version
#!/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()




© 2015 - 2024 Weber Informatics LLC | Privacy Policy