Skip to content

Commit

Permalink
Test improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-tuininga committed Nov 5, 2024
1 parent 3db2ee9 commit c09352e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/test_1000_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,16 @@ def test_1008(self):
)
self.assertIs(oracledb.VECTOR_FORMAT_INT8, oracledb.VectorFormat.INT8)

def test_1009(self):
"1009 - test enable_thin_mode()"
if test_env.get_is_thin():
oracledb.enable_thin_mode()
with self.assertRaisesFullCode("DPY-2019"):
oracledb.init_oracle_client()
else:
with self.assertRaisesFullCode("DPY-2053"):
oracledb.enable_thin_mode()


if __name__ == "__main__":
test_env.run_test_cases()
2 changes: 2 additions & 0 deletions tests/test_3700_var.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,8 @@ def test_3731(self):

def test_3732(self):
"3732 - test encoding_errors"
if test_env.get_charset() != "AL32UTF8":
self.skipTest("Database character set must be AL32UTF8")
str_value = "Я"
replacement_char = "�"
invalid_bytes = str_value.encode("windows-1251")
Expand Down

0 comments on commit c09352e

Please sign in to comment.