diff options
Diffstat (limited to 'tests/postgres_tests/test_indexes.py')
| -rw-r--r-- | tests/postgres_tests/test_indexes.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/postgres_tests/test_indexes.py b/tests/postgres_tests/test_indexes.py index 100e570092..2f74203e8b 100644 --- a/tests/postgres_tests/test_indexes.py +++ b/tests/postgres_tests/test_indexes.py @@ -330,9 +330,14 @@ class SchemaTests(PostgreSQLTestCase): name=index_name, fastupdate=True, gin_pending_list_limit=64, + db_tablespace="pg_default", ) with connection.schema_editor() as editor: editor.add_index(IntegerArrayModel, index) + self.assertIn( + ") WITH (gin_pending_list_limit = 64, fastupdate = on) TABLESPACE", + str(index.create_sql(IntegerArrayModel, editor)), + ) constraints = self.get_constraints(IntegerArrayModel._meta.db_table) self.assertEqual(constraints[index_name]["type"], "gin") self.assertEqual( |
