python-cx_Oracle/test
Anthony Tuininga 7c51c67179 Fixed crash when using the deprecated parameter name keywordParameters
with Cursor.callproc(); added to test suite to verify deprecations.
2021-05-28 15:02:28 -06:00
..
sql Rename samples and test files in order to be consistent. 2021-04-23 13:36:00 -06:00
README.md Documentation updates, including changes for PEP 8 compliance, to take 2021-05-18 16:53:31 -06:00
drop_test.py Rename samples and test files in order to be consistent. 2021-04-23 13:36:00 -06:00
setup_test.py Rename samples and test files in order to be consistent. 2021-04-23 13:36:00 -06:00
test_1000_module.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1100_connection.py The distributed transaction handle assosciated with the connection is now 2021-03-04 09:41:37 -07:00
test_1200_cursor.py Fixed crash when using the deprecated parameter name keywordParameters 2021-05-28 15:02:28 -06:00
test_1300_cursor_var.py Improved test suite; added check that the LOB type matches the expected 2021-04-23 11:53:13 -06:00
test_1400_datetime_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1500_types.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1600_dml_returning.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1700_error.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1800_interval_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_1900_lob_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_2000_long_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_2100_nchar_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_2200_number_var.py Added more test cases. 2020-12-21 14:57:45 -07:00
test_2300_object_var.py Improved test suite; added check that the LOB type matches the expected 2021-04-23 11:53:13 -06:00
test_2400_session_pool.py Fixed crash when using the deprecated parameter name keywordParameters 2021-05-28 15:02:28 -06:00
test_2500_string_var.py Improve test suite. 2021-05-18 16:58:03 -06:00
test_2600_timestamp_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_2700_aq.py Fixed crash when using the deprecated parameter name keywordParameters 2021-05-28 15:02:28 -06:00
test_2800_bulk_aq.py Further work on adjusting attribute, method and parameter names to be 2021-04-23 13:40:24 -06:00
test_2900_rowid.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3000_subscription.py Fixed crash when using the deprecated parameter name keywordParameters 2021-05-28 15:02:28 -06:00
test_3100_boolean_var.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3200_features_12_1.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3300_soda_database.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3400_soda_collection.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3500_json.py Rename "base" to "test_env" to be clearer as to the purpose of the module. 2020-12-08 11:44:55 -07:00
test_3600_outputtypehandler.py Improved test suite; added check that the LOB type matches the expected 2021-04-23 11:53:13 -06:00
test_3700_var.py Improved test suite; added check that the LOB type matches the expected 2021-04-23 11:53:13 -06:00
test_3800_typehandler.py Improved the test suite. 2021-04-23 12:04:29 -06:00
test_env.py Rename samples and test files in order to be consistent. 2021-04-23 13:36:00 -06: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 setup_test.py. The script requires administrative 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 test_env.py. Run the script using the following command:

    python setup_test.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 system/systempassword@hostname/servicename @sql/setup_test.sql
    
  2. Run the test suite by issuing the following command in the top-level directory of your cx_Oracle installation:

    tox
    

    This will build the module in an independent environment and run the test suite using the module that was just built in that environment. Alternatively, you can use the currently installed build of cx_Oracle and run the following command instead:

    python -m unittest discover -v -s test
    

    You may also run each of the test scripts independently, as in:

    python test_1000_module.py
    
  3. After running the test suite, the schemas can be dropped by running the Python script drop_test.py. The script requires administrative 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 test_env.py. Run the script using the following command:

    python drop_test.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 system/systempassword@hostname/servicename @sql/drop_test.sql