summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2020-04-21 15:46:18 +0200
committerGitHub <noreply@github.com>2020-04-21 15:46:18 +0200
commitd5898db50ec6f77404d96eba5ddac9b50df407a7 (patch)
treef288ccf4a7e08cead213a07378bdbd217c9ce976
parent150c3d13a6fdf1a89a0fa90a8f8687fe3757a015 (diff)
Fixed backends.oracle.test_operations.
Using unittest.TestCase doesn't work properly when we perform db queries. Moreover introspection is extremely slow on Oracle without limiting models to a "backends" app. Follow up to 8bcca47e8356521f52f0738d9633befd53007cae.
-rw-r--r--tests/backends/oracle/test_operations.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/backends/oracle/test_operations.py b/tests/backends/oracle/test_operations.py
index 7722744ecc..54fe73139d 100644
--- a/tests/backends/oracle/test_operations.py
+++ b/tests/backends/oracle/test_operations.py
@@ -2,12 +2,14 @@ import unittest
from django.core.management.color import no_style
from django.db import connection
+from django.test import TransactionTestCase
from ..models import Person, Tag
@unittest.skipUnless(connection.vendor == 'oracle', 'Oracle tests')
-class OperationsTests(unittest.TestCase):
+class OperationsTests(TransactionTestCase):
+ available_apps = ['backends']
def test_sequence_name_truncation(self):
seq_name = connection.ops._get_no_autofield_sequence_name('schema_authorwithevenlongee869')