We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbbe2fb commit ac07863Copy full SHA for ac07863
tests/indexes_/test_atlas_indexes.py
@@ -84,12 +84,9 @@ def test_field_not_exists(self):
84
name="recent_article_idx",
85
fields=["headline", "non_existing_name"],
86
)
87
- with connection.schema_editor() as editor:
88
- msg = "Article has no field named 'non_existing_name'"
89
- with self.assertRaisesMessage(
90
- FieldDoesNotExist, msg
91
- ), connection.schema_editor() as editor:
92
- editor.add_index(index=index, model=Article)
+ msg = "Article has no field named 'non_existing_name'"
+ with self.assertRaisesMessage(FieldDoesNotExist, msg), connection.schema_editor() as editor:
+ editor.add_index(index=index, model=Article)
93
94
95
class VectorSearchIndexTests(TestCase):
0 commit comments