Skip to content

Commit 3154ac6

Browse files
committed
Remove redundant tests
1 parent 6223ea1 commit 3154ac6

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

tests/indexes_/test_atlas_indexes.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from django.core.exceptions import FieldDoesNotExist
21
from django.db import connection
32
from django.test import TestCase
43

@@ -79,15 +78,6 @@ def test_multiple_fields(self):
7978
self.assertEqual(index_info[index.name]["options"], expected_options)
8079
self.assertAddRemoveIndex(editor, Article, index)
8180

82-
def test_field_not_exists(self):
83-
index = SearchIndex(
84-
name="recent_article_idx",
85-
fields=["headline", "non_existing_name"],
86-
)
87-
msg = "Article has no field named 'non_existing_name'"
88-
with self.assertRaisesMessage(FieldDoesNotExist, msg), connection.schema_editor() as editor:
89-
editor.add_index(index=index, model=Article)
90-
9181

9282
class VectorSearchIndexTests(TestCase):
9383
# Tests for creating, validating, and removing vector search indexes
@@ -176,15 +166,6 @@ def test_multiple_fields(self):
176166
self.assertEqual(index_info[index.name]["options"], expected_options)
177167
self.assertAddRemoveIndex(editor, Article, index)
178168

179-
def test_field_not_exists(self):
180-
index = VectorSearchIndex(
181-
name="recent_article_idx",
182-
fields=["headline", "non_existing_name", "title_embedded"],
183-
)
184-
msg = "Article has no field named 'non_existing_name'"
185-
with self.assertRaisesMessage(FieldDoesNotExist, msg), connection.schema_editor() as editor:
186-
editor.add_index(index=index, model=Article)
187-
188169
def test_field_size_required(self):
189170
index = VectorSearchIndex(
190171
name="recent_article_idx",

0 commit comments

Comments
 (0)