From 7d5d20212c5b86aaa811deaa5eeb4212b615f2e8 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 12 Feb 2019 20:10:02 +0100 Subject: [PATCH] Simplified test_cursor_var() by using str instead of Database.STRING. --- tests/backends/oracle/tests.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/backends/oracle/tests.py b/tests/backends/oracle/tests.py index 333d224b3f6..baf2b083ff1 100644 --- a/tests/backends/oracle/tests.py +++ b/tests/backends/oracle/tests.py @@ -24,9 +24,8 @@ class Tests(unittest.TestCase): def test_cursor_var(self): """Cursor variables can be passed as query parameters.""" - from django.db.backends.oracle.base import Database with connection.cursor() as cursor: - var = cursor.var(Database.STRING) + var = cursor.var(str) cursor.execute("BEGIN %s := 'X'; END; ", [var]) self.assertEqual(var.getvalue(), 'X')