Codebase list python-cx-oracle / master test
master

Tree @master (Download .tar.gz)

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
  1. 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
  1. 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