summaryrefslogtreecommitdiff
path: root/tests/schema
diff options
context:
space:
mode:
Diffstat (limited to 'tests/schema')
-rw-r--r--tests/schema/tests.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index b986f27aa1..9b8e27e207 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -321,12 +321,7 @@ class SchemaTests(TransactionTestCase):
Node._meta.add_field(new_field)
editor.execute('UPDATE schema_node SET new_parent_fk_id = %s;', [parent.pk])
editor.add_index(Node, Index(fields=['new_parent_fk'], name='new_parent_inline_fk_idx'))
- assertIndex = (
- self.assertIn
- if connection.features.indexes_foreign_keys
- else self.assertNotIn
- )
- assertIndex('new_parent_fk_id', self.get_indexes(Node._meta.db_table))
+ self.assertIn('new_parent_fk_id', self.get_indexes(Node._meta.db_table))
@skipUnlessDBFeature('supports_foreign_keys')
def test_char_field_with_db_index_to_fk(self):