Skip to content

Commit 19c09cf

Browse files
committed
remove monkey patch
1 parent 34334d3 commit 19c09cf

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

django_enum/tests/tests.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
# monkey patch a fix to django oracle backend bug, blocks all oracle tests
7474
from django.db.backends.oracle.schema import DatabaseSchemaEditor
7575
from django.utils.duration import duration_iso_string
76-
from django.db.backends.oracle.base import FormatStylePlaceholderCursor
7776

7877
quote_value = DatabaseSchemaEditor.quote_value
7978

@@ -87,28 +86,6 @@ def quote_value_patched(self, value):
8786

8887

8988
DatabaseSchemaEditor.quote_value = quote_value_patched
90-
91-
92-
_param_generator = FormatStylePlaceholderCursor._param_generator
93-
94-
95-
def param_generator(self, params):
96-
params = _param_generator(self, params)
97-
if hasattr(params, "items"):
98-
return {
99-
k: duration_iso_string(v)
100-
if isinstance(v, timedelta)
101-
else v for k, v in params.items()
102-
}
103-
else:
104-
return [
105-
duration_iso_string(p)
106-
if isinstance(p, timedelta) else p for p in params
107-
]
108-
109-
110-
FormatStylePlaceholderCursor._param_generator = param_generator
111-
import cx_Oracle
11289
###############################################################################
11390

11491

0 commit comments

Comments
 (0)