summaryrefslogtreecommitdiff
path: root/tests/backends/oracle
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2018-01-23 14:53:45 +0100
committerTim Graham <timograham@gmail.com>2018-01-23 08:53:45 -0500
commit950171d7b20a148a964281aed16aff3d2c734ab4 (patch)
treeb635f37dc448210023b7234108db4a4cad35d5e4 /tests/backends/oracle
parentff05de760cc4ef4c7f188e163c722ec3bc1f0cbf (diff)
downloaddjango-950171d7b20a148a964281aed16aff3d2c734ab4.tar.gz
Refs #11487 -- Removed redundant test_long_string() test.
Redundant with model_regress.tests.ModelTests.test_long_textfield since 3ede430b9a94e3c2aed64d2cf898920635bdf4ae.
Diffstat (limited to 'tests/backends/oracle')
-rw-r--r--tests/backends/oracle/tests.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/tests/backends/oracle/tests.py b/tests/backends/oracle/tests.py
index 02bcceabb4..6896419778 100644
--- a/tests/backends/oracle/tests.py
+++ b/tests/backends/oracle/tests.py
@@ -30,17 +30,6 @@ class Tests(unittest.TestCase):
cursor.execute("BEGIN %s := 'X'; END; ", [var])
self.assertEqual(var.getvalue(), 'X')
- def test_long_string(self):
- """Text longer than 4000 chars can be saved and read."""
- with connection.cursor() as cursor:
- cursor.execute('CREATE TABLE ltext ("TEXT" NCLOB)')
- long_str = ''.join(str(x) for x in range(4000))
- cursor.execute('INSERT INTO ltext VALUES (%s)', [long_str])
- cursor.execute('SELECT text FROM ltext')
- row = cursor.fetchone()
- self.assertEqual(long_str, row[0].read())
- cursor.execute('DROP TABLE ltext')
-
def test_client_encoding(self):
"""Client encoding is set correctly."""
connection.ensure_connection()