diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-05-19 09:26:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-19 09:26:48 +0200 |
| commit | 981c23c0ccbcaa155a80f894fd9e832beaab661d (patch) | |
| tree | e74d0d4ef436c10bbd426d8197f8486e551f2144 /tests/postgres_tests/test_indexes.py | |
| parent | 9f5548952906c6ea97200c016734b4f519520a64 (diff) | |
Fixed #33717 -- Dropped support for PostgreSQL 11.
Diffstat (limited to 'tests/postgres_tests/test_indexes.py')
| -rw-r--r-- | tests/postgres_tests/test_indexes.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/postgres_tests/test_indexes.py b/tests/postgres_tests/test_indexes.py index 9da2f33ae8..dc1064b35d 100644 --- a/tests/postgres_tests/test_indexes.py +++ b/tests/postgres_tests/test_indexes.py @@ -505,7 +505,6 @@ class SchemaTests(PostgreSQLTestCase): index_name, self.get_constraints(CharFieldModel._meta.db_table) ) - @skipUnlessDBFeature("supports_covering_gist_indexes") def test_gist_include(self): index_name = "scene_gist_include_setting" index = GistIndex(name=index_name, fields=["scene"], include=["setting"]) @@ -519,20 +518,6 @@ class SchemaTests(PostgreSQLTestCase): editor.remove_index(Scene, index) self.assertNotIn(index_name, self.get_constraints(Scene._meta.db_table)) - def test_gist_include_not_supported(self): - index_name = "gist_include_exception" - index = GistIndex(fields=["scene"], name=index_name, include=["setting"]) - msg = "Covering GiST indexes require PostgreSQL 12+." - with self.assertRaisesMessage(NotSupportedError, msg): - with mock.patch( - "django.db.backends.postgresql.features.DatabaseFeatures." - "supports_covering_gist_indexes", - False, - ): - with connection.schema_editor() as editor: - editor.add_index(Scene, index) - self.assertNotIn(index_name, self.get_constraints(Scene._meta.db_table)) - def test_tsvector_op_class_gist_index(self): index_name = "tsvector_op_class_gist" index = GistIndex( |
