diff --git a/tests/backends/oracle/tests.py b/tests/backends/oracle/tests.py
index 85d45805e0..a50f38dbe2 100644
a
|
b
|
from django.db import DatabaseError, connection
|
4 | 4 | from django.db.models import BooleanField |
5 | 5 | from django.test import TransactionTestCase |
6 | 6 | |
7 | | from ..models import Square |
| 7 | from ..models import ( |
| 8 | Square, VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ, |
| 9 | ) |
8 | 10 | |
9 | 11 | |
10 | 12 | @unittest.skipUnless(connection.vendor == 'oracle', 'Oracle tests') |
… |
… |
class Tests(unittest.TestCase):
|
16 | 18 | quoted_name = connection.ops.quote_name(name) |
17 | 19 | self.assertEqual(quoted_name % (), name) |
18 | 20 | |
| 21 | def test_quote_name_db_table(self): |
| 22 | model = VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ |
| 23 | db_table = model._meta.db_table.upper() |
| 24 | self.assertEqual(f'"{db_table}"', connection.ops.quote_name( |
| 25 | 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz', |
| 26 | )) |
| 27 | |
19 | 28 | def test_dbms_session(self): |
20 | 29 | """A stored procedure can be called through a cursor wrapper.""" |
21 | 30 | with connection.cursor() as cursor: |