14
14
@skipIfDBFeature ("supports_atlas_search" )
15
15
@isolate_apps ("indexes_" , attr_name = "apps" )
16
16
@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 ):
19
19
class Article (models .Model ):
20
20
title = models .CharField (max_length = 10 )
21
21
@@ -38,12 +38,7 @@ class Meta:
38
38
],
39
39
)
40
40
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 ):
47
42
class Article (models .Model ):
48
43
title = models .CharField (max_length = 10 )
49
44
@@ -151,8 +146,8 @@ class Meta:
151
146
"Field 'vector_data' is defined more than once. Vector and filter "
152
147
"fields must use distinct field names." ,
153
148
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." ,
156
151
obj = Article ._meta .indexes [0 ],
157
152
),
158
153
],
0 commit comments