Added copyright notices to the top of all tests and samples as requested.
This commit is contained in:
parent
00621215f2
commit
b614a47ef2
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# AdvancedQueuing.py
|
# AdvancedQueuing.py
|
||||||
# This script demonstrates how to use advanced queuing using cx_Oracle. It
|
# This script demonstrates how to use advanced queuing using cx_Oracle. It
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# AppContext.py
|
# AppContext.py
|
||||||
# This script demonstrates the use of application context. Application
|
# This script demonstrates the use of application context. Application
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# DRCP.py
|
# DRCP.py
|
||||||
# This script demonstrates the use of Database Resident Connection Pooling
|
# This script demonstrates the use of Database Resident Connection Pooling
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# DatabaseChangeNotification.py
|
# DatabaseChangeNotification.py
|
||||||
# This script demonstrates using database change notification in Python, a
|
# This script demonstrates using database change notification in Python, a
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# DatabaseShutdown.py
|
# DatabaseShutdown.py
|
||||||
# This script demonstrates shutting down a database using Python. It is only
|
# This script demonstrates shutting down a database using Python. It is only
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# DatabaseStartup.py
|
# DatabaseStartup.py
|
||||||
# This script demonstrates starting up a database using Python. It is only
|
# This script demonstrates starting up a database using Python. It is only
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# Editioning.py
|
# Editioning.py
|
||||||
# This script demonstrates the use of editioning, available in Oracle
|
# This script demonstrates the use of editioning, available in Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# InsertGeometry.py
|
# InsertGeometry.py
|
||||||
# This script demonstrates the ability to create Oracle objects (this example
|
# This script demonstrates the ability to create Oracle objects (this example
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# QueryChangeNotification.py
|
# QueryChangeNotification.py
|
||||||
# This script demonstrates using query change notification in Python, a
|
# This script demonstrates using query change notification in Python, a
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ReturnLongs.py
|
# ReturnLongs.py
|
||||||
# Returns all CLOB values as long strings and BLOB values as long raws. This
|
# Returns all CLOB values as long strings and BLOB values as long raws. This
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# ReturnUnicode.py
|
# ReturnUnicode.py
|
||||||
# Returns all strings as unicode. This also demonstrates the use of an output
|
# Returns all strings as unicode. This also demonstrates the use of an output
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# RowsAsInstance.py
|
# RowsAsInstance.py
|
||||||
# Returns rows as instances instead of tuples. See the ceDatabase.Row class
|
# Returns rows as instances instead of tuples. See the ceDatabase.Row class
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# TransactionGuard.py
|
# TransactionGuard.py
|
||||||
# This script demonstrates the use of Transaction Guard to verify if a
|
# This script demonstrates the use of Transaction Guard to verify if a
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
# TypeHandlers.py
|
# TypeHandlers.py
|
||||||
# This script demonstrates the use of input and output type handlers as well
|
# This script demonstrates the use of input and output type handlers as well
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing boolean variables."""
|
"""Module for testing boolean variables."""
|
||||||
|
|
||||||
class TestBooleanVar(BaseTestCase):
|
class TestBooleanVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing connections."""
|
"""Module for testing connections."""
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing cursor objects."""
|
"""Module for testing cursor objects."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing cursor variables."""
|
"""Module for testing cursor variables."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing date/time variables."""
|
"""Module for testing date/time variables."""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing error objects."""
|
"""Module for testing error objects."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing features introduced in 12.1"""
|
"""Module for testing features introduced in 12.1"""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing interval variables."""
|
"""Module for testing interval variables."""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing LOB (CLOB and BLOB) variables."""
|
"""Module for testing LOB (CLOB and BLOB) variables."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing long and long raw variables."""
|
"""Module for testing long and long raw variables."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing NCHAR variables."""
|
"""Module for testing NCHAR variables."""
|
||||||
|
|
||||||
class TestNCharVar(BaseTestCase):
|
class TestNCharVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing number variables."""
|
"""Module for testing number variables."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing object variables."""
|
"""Module for testing object variables."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing session pools."""
|
"""Module for testing session pools."""
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -1,4 +1,13 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing string variables."""
|
"""Module for testing string variables."""
|
||||||
|
|
||||||
class TestStringVar(BaseTestCase):
|
class TestStringVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Define test environment."""
|
"""Define test environment."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing timestamp variables."""
|
"""Module for testing timestamp variables."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Runs all defined unit tests."""
|
"""Runs all defined unit tests."""
|
||||||
|
|
||||||
from __future__ import print_function
|
from __future__ import print_function
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Driver specific portion of the DB API test suite provided by Stuart Bishop
|
"""Driver specific portion of the DB API test suite provided by Stuart Bishop
|
||||||
available at http://stuartbishop.net/Software/DBAPI20TestSuite/"""
|
available at http://stuartbishop.net/Software/DBAPI20TestSuite/"""
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing connections."""
|
"""Module for testing connections."""
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing cursor objects."""
|
"""Module for testing cursor objects."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing cursor variables."""
|
"""Module for testing cursor variables."""
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing date/time variables."""
|
"""Module for testing date/time variables."""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing row count per iteration for DML Array and Batch errors"""
|
"""Module for testing row count per iteration for DML Array and Batch errors"""
|
||||||
|
|
||||||
class TestArrayDMLBatchError(BaseTestCase):
|
class TestArrayDMLBatchError(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing interval variables."""
|
"""Module for testing interval variables."""
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing LOB (CLOB and BLOB) variables."""
|
"""Module for testing LOB (CLOB and BLOB) variables."""
|
||||||
|
|
||||||
class TestLobVar(BaseTestCase):
|
class TestLobVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing long and long raw variables."""
|
"""Module for testing long and long raw variables."""
|
||||||
|
|
||||||
class TestLongVar(BaseTestCase):
|
class TestLongVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing number variables."""
|
"""Module for testing number variables."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing object variables."""
|
"""Module for testing object variables."""
|
||||||
|
|
||||||
import cx_Oracle
|
import cx_Oracle
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing session pools."""
|
"""Module for testing session pools."""
|
||||||
|
|
||||||
import threading
|
import threading
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing string variables."""
|
"""Module for testing string variables."""
|
||||||
|
|
||||||
class TestStringVar(BaseTestCase):
|
class TestStringVar(BaseTestCase):
|
||||||
|
|
|
@ -1,3 +1,12 @@
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
# Copyright 2016, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2007-2015, Anthony Tuininga. All rights reserved.
|
||||||
|
#
|
||||||
|
# Portions Copyright 2001-2007, Computronix (Canada) Ltd., Edmonton, Alberta,
|
||||||
|
# Canada. All rights reserved.
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
"""Module for testing timestamp variables."""
|
"""Module for testing timestamp variables."""
|
||||||
|
|
||||||
import time
|
import time
|
||||||
|
|
Loading…
Reference in New Issue