python-cx_Oracle/test
Anthony Tuininga e37e502724 Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
..
sql Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
AQ.py Rename queues and queue tables to be more clear as to which is which. 2019-06-11 19:13:21 -06:00
BooleanVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
BulkAQ.py Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
Connection.py Correct parsing of connect string so that the last @ symbol is searched for 2019-03-28 10:46:15 -06:00
Cursor.py Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
CursorVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
DMLReturning.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
DateTimeVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
DropTest.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
Error.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
Features12_1.py Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
IntervalVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
LobVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
LongVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
Module.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
NCharVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
NumberVar.py Revert changes to return decimal numbers when the numeric precision was too 2019-03-12 09:31:38 -06:00
ObjectVar.py Add support for setting a CLOB attribute on a SQL object, as requested 2019-04-29 11:41:28 -06:00
README.md Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
Rowid.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
SessionPool.py Added test cases for session tagging. 2019-03-07 17:00:14 -07:00
SetupTest.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
SodaCollection.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
SodaDatabase.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
StringVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
Subscription.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
TestEnv.py For Python 2.7, raw_input is needed to request input; also ensure that 2019-03-29 09:49:40 -06:00
TimestampVar.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00
test.py Added test cases, particularly for bulk AQ operations. 2019-07-05 14:32:59 -06:00
test_dbapi20.py Reworked test suite to eliminate the use of default passwords and to make the 2019-01-31 10:18:04 -07:00

README.md

This directory contains the test suite for cx_Oracle.

  1. The schemas and SQL objects that are referenced in the test suite can be created by running the Python script SetupTest.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas that will be created, unless a number of environment variables are set as documented in the Python script TestEnv.py. Run the script using the following command:

    python SetupTest.py
    

    Alternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas that will be created. Run the script using the following command:

    sqlplus sys/syspassword@hostname/servicename @sql/SetupTest.sql
    
  2. Run the test suite by issuing the following command in the top-level directory of your cx_Oracle installation:

    python setup.py test
    

    Alternatively, you can run the test suite directly within this directory:

    python test.py
    
  3. After running the test suite, the schemas can be dropped by running the Python script DropTest.py. The script requires SYSDBA privileges and will prompt for these credentials as well as the names of the schemas that will be dropped, unless a number of environment variables are set as documented in the Python script TestEnv.py. Run the script using the following command:

    python DropTest.py
    

    Alternatively, the SQL script can be run directly via SQL*Plus, which will always prompt for the names of the schemas that will be dropped. Run the script using the following command:

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