anthony-tuininga Remove __future__ attributes for functionality which is now enabled p…
…ermanently

in cx_Oracle 7: connections as context managers now close the connection and
variables in DML returning statements now return an array.
Latest commit dc26017 Jul 13, 2018
Permalink
..
Failed to load latest commit information.
sql Use the built-in type SYS_REFCURSOR instead of creating a new one. May 30, 2018
AQ.py Added test cases for AQ transformations and trimming collections. May 10, 2018
BooleanVar.py Added copyright notices to the top of all tests and samples as reques… Mar 9, 2017
Connection.py Remove __future__ attributes for functionality which is now enabled p… Jul 12, 2018
Cursor.py If cursor.setinputsizes() is called without any parameters, do not se… Jul 3, 2018
CursorVar.py Correct handling of statements and rowids in DML returning statements. May 30, 2018
DMLReturning.py Remove __future__ attributes for functionality which is now enabled p… Jul 12, 2018
DateTimeVar.py Restore support for binding a date value to datetime variable. Feb 2, 2018
Error.py Added copyright notices to the top of all tests and samples as reques… Mar 9, 2017
Features12_1.py Added copyright notices to the top of all tests and samples as reques… Mar 9, 2017
IntervalVar.py Added copyright notices to the top of all tests and samples as reques… Mar 9, 2017
LobVar.py Added support for creating a temporary LOB directly. Feb 16, 2018
LongVar.py Add test demonstrating that binding of long data using cursor.execute… Mar 19, 2018
Module.py Remove __future__ attributes for functionality which is now enabled p… Jul 12, 2018
NCharVar.py Correct test suite when CHAR encoding is not capable of handling unic… Nov 14, 2017
NumberVar.py Added support for binding decimal.Decimal values to cx_Oracle.NATIVE_… May 24, 2018
ObjectVar.py Added test cases for AQ transformations and trimming collections. May 10, 2018
README.md Add information on how to run the test suite Aug 8, 2017
Rowid.py Added test cases for rowids. Oct 25, 2017
SessionPool.py Added additional test cases for heterogeneous pools. Jun 19, 2018
StringVar.py Ensure that the number of elements in the array is not lost when the … Feb 16, 2018
Subscription.py Additional test cases to improve code coverage. Jan 11, 2018
TestEnv.py Change default connectstring to localhost/orclpdb to be consistent wi… Aug 8, 2017
TimestampVar.py Added copyright notices to the top of all tests and samples as reques… Mar 9, 2017
test.py Added additional test cases for heterogeneous pools. Jun 19, 2018
test_dbapi20.py Update DB API test stub to match latest version of test suite and cx_… Jul 5, 2017

README.md

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