summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruce Cutler <bruce@sumebrius.net>2022-06-13 15:48:43 +1200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-06-13 07:21:46 +0200
commitde1c8320cedee5d4f91b153a7fe82eb63876470f (patch)
tree98185b5a977b3de451b7a390469b5e07322b18a2 /tests
parent4996eaa7b5b11f822d1c97df79644738df3fed68 (diff)
Fixed #33773 -- Made Index with multiple fields respect DEFAULT_INDEX_TABLESPACE.
Thanks to Simon Charette for locating where issue lay.
Diffstat (limited to 'tests')
-rw-r--r--tests/model_indexes/tests.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/model_indexes/tests.py b/tests/model_indexes/tests.py
index 6f40011a5b..0c8378f624 100644
--- a/tests/model_indexes/tests.py
+++ b/tests/model_indexes/tests.py
@@ -3,7 +3,7 @@ from unittest import mock
from django.conf import settings
from django.db import connection, models
from django.db.models.functions import Lower, Upper
-from django.test import SimpleTestCase, TestCase, skipUnlessDBFeature
+from django.test import SimpleTestCase, TestCase, override_settings, skipUnlessDBFeature
from django.test.utils import isolate_apps
from .models import Book, ChildModel1, ChildModel2
@@ -305,6 +305,7 @@ class SimpleIndexesTests(SimpleTestCase):
)
+@override_settings(DEFAULT_TABLESPACE=None)
class IndexesTests(TestCase):
@skipUnlessDBFeature("supports_tablespaces")
def test_db_tablespace(self):