Anthony Tuininga 43a485042f Add additional check for calling setinputsizes() with an empty dictionary in
order to avoid the error "cx_Oracle.ProgrammingError: positional and named
binds cannot be intermixed"
(https://github.com/oracle/python-cx_Oracle/issues/199).
2019-01-08 14:41:01 -07:00
..

This directory contains the test suite for cx_Oracle.

The schemas and SQL objects that are referenced in the test suite can be created by running the SQL script sql/SetupTest.sql. The syntax is:

sqlplus sys/syspassword@hostname/servicename as sysdba @sql/SetupTest.sql

The script will create users cx_Oracle and cx_Oracle_proxy. If you wish to change the names of the users or the name of the edition you can edit the file sql/TestEnv.sql. You will also need to edit the file TestEnv.py or set environment variables as documented in TestEnv.py.

The test suite can be run without having cx_Oracle installed by issuing the following command in the main directory:

python setup.py test

If cx_Oracle is already installed, you can also run it by issuing the following command in this directory:

python test.py

After running the test suite, the schemas and SQL objects can be dropped by running the SQL script sql/DropTest.sql. The syntax is

sqlplus sys/syspassword@hostname/servicename as sysdba @sql/DropTest.sql