1414@skipIfDBFeature ("supports_atlas_search" )
1515@isolate_apps ("indexes_" , attr_name = "apps" )
1616@override_system_checks ([check_indexes ])
17- class InvalidSearchIndexesTests (TestCase ):
18- def test_requires_atlas_search_support (self ):
17+ class UnsupportedSearchIndexesTests (TestCase ):
18+ def test_search_requires_atlas_search_support (self ):
1919 class Article (models .Model ):
2020 title = models .CharField (max_length = 10 )
2121
@@ -38,12 +38,7 @@ class Meta:
3838 ],
3939 )
4040
41-
42- @skipIfDBFeature ("supports_atlas_search" )
43- @isolate_apps ("indexes_" , attr_name = "apps" )
44- @override_system_checks ([check_indexes ])
45- class UnsupportedSearchIndexesTests (TestCase ):
46- def test_requires_atlas_search_support (self ):
41+ def test_vector_search_requires_atlas_search_support (self ):
4742 class Article (models .Model ):
4843 title = models .CharField (max_length = 10 )
4944
@@ -151,8 +146,8 @@ class Meta:
151146 "Field 'vector_data' is defined more than once. Vector and filter "
152147 "fields must use distinct field names." ,
153148 id = "django_mongodb_backend.indexes.VectorSearchIndex.E004" ,
154- hint = "If you need different configurations for the same field,"
155- " create separate indexes." ,
149+ hint = "If you need different configurations for the same field, "
150+ "create separate indexes." ,
156151 obj = Article ._meta .indexes [0 ],
157152 ),
158153 ],
0 commit comments