Anthony Tuininga 1bd8e95807 Added support for closing the connection when reaching the end of a code block
controlled by the connection as a context manager, but in a backwards
compatible way (https://github.com/oracle/python-cx_Oracle/issues/113).
2018-02-27 16:58:01 -07:00
..
2017-11-27 10:38:27 -07:00
2018-02-27 16:57:01 -07:00
2018-02-27 16:57:01 -07:00
2017-10-24 22:03:47 -06:00
2018-02-27 16:57: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 / 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 / as sysdba @sql/DropTest.sql