Skip to content

Commit ae9a637

Browse files
committed
add some print statements
1 parent e85293a commit ae9a637

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

django_enum/tests/tests.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
# ORACLE is buggy!
7676

7777
IGNORE_ORA_01843 = os.environ.get('IGNORE_ORA_01843', False) in ['true', 'True', '1', 'yes', 'YES']
78+
print(f'IGNORE_ORA_01843: {IGNORE_ORA_01843}')
7879

7980
# monkey patch a fix to django oracle backend bug, blocks all oracle tests
8081
from django.db.backends.oracle.schema import DatabaseSchemaEditor
@@ -681,6 +682,7 @@ def test_basic_save(self):
681682
try:
682683
self.MODEL_CLASS.objects.create(**self.create_params)
683684
except DatabaseError as err:
685+
print(str(err))
684686
if IGNORE_ORA_01843 and connection.vendor == 'oracle' and 'ORA-01843' in str(err):
685687
# this is an oracle bug - intermittent failure on
686688
# perfectly fine date format in SQL
@@ -703,6 +705,7 @@ def test_to_python_deferred_attribute(self):
703705
try:
704706
obj = self.MODEL_CLASS.objects.create(**self.create_params)
705707
except DatabaseError as err:
708+
print(str(err))
706709
if IGNORE_ORA_01843 and connection.vendor == 'oracle' and 'ORA-01843' in str(err):
707710
# this is an oracle bug - intermittent failure on
708711
# perfectly fine date format in SQL
@@ -899,6 +902,7 @@ def test_values(self):
899902
try:
900903
self.do_test_values()
901904
except DatabaseError as err:
905+
print(str(err))
902906
if IGNORE_ORA_01843 and connection.vendor == 'oracle' and 'ORA-01843' in str(err):
903907
# this is an oracle bug - intermittent failure on
904908
# perfectly fine date format in SQL
@@ -992,6 +996,7 @@ def test_serialization(self):
992996
**self.values_params
993997
)
994998
except DatabaseError as err:
999+
print(str(err))
9951000
if IGNORE_ORA_01843 and connection.vendor == 'oracle' and 'ORA-01843' in str(
9961001
err):
9971002
# this is an oracle bug - intermittent failure on

0 commit comments

Comments
 (0)