11111300 - Module for testing cursor variables
1212"""
1313
14- import base
14+ import test_env
1515
1616import cx_Oracle as oracledb
1717import sys
1818
19- class TestCase (base .BaseTestCase ):
19+ class TestCase (test_env .BaseTestCase ):
2020
2121 def test_1300_bind_cursor (self ):
2222 "1300 - test binding in a cursor"
@@ -29,7 +29,7 @@ def test_1300_bind_cursor(self):
2929 cursor = cursor )
3030 expected_value = [
3131 ('STRINGVALUE' , oracledb .DB_TYPE_CHAR , 1 ,
32- base .get_charset_ratio (), None , None , 1 )
32+ test_env .get_charset_ratio (), None , None , 1 )
3333 ]
3434 self .assertEqual (cursor .description , expected_value )
3535 self .assertEqual (cursor .fetchall (), [('X' ,)])
@@ -42,7 +42,7 @@ def test_1301_bind_cursor_in_package(self):
4242 expected_value = [
4343 ('INTCOL' , oracledb .DB_TYPE_NUMBER , 10 , None , 9 , 0 , 0 ),
4444 ('STRINGCOL' , oracledb .DB_TYPE_VARCHAR , 20 ,
45- 20 * base .get_charset_ratio (), None , None , 0 )
45+ 20 * test_env .get_charset_ratio (), None , None , 0 )
4646 ]
4747 self .assertEqual (cursor .description , expected_value )
4848 self .assertEqual (cursor .fetchall (), [(1 , 'String 1' ), (2 , 'String 2' )])
@@ -95,4 +95,4 @@ def test_1304_fetch_cursor(self):
9595 self .assertEqual (cursor .fetchall (), [(i + 1 ,)])
9696
9797if __name__ == "__main__" :
98- base .run_test_cases ()
98+ test_env .run_test_cases ()
0 commit comments