@@ -21,6 +21,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
21
21
# BSON Date type doesn't support microsecond precision.
22
22
supports_microsecond_precision = False
23
23
supports_paramstyle_pyformat = False
24
+ # Not implemented.
25
+ supports_partial_indexes = False
24
26
supports_select_difference = False
25
27
supports_select_intersection = False
26
28
supports_sequence_reset = False
@@ -92,9 +94,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
92
94
"schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield" ,
93
95
"schema.tests.SchemaTests.test_alter_field_default_dropped" ,
94
96
"schema.tests.SchemaTests.test_alter_field_fk_to_o2o" ,
95
- "schema.tests.SchemaTests.test_alter_field_o2o_keeps_unique" ,
96
97
"schema.tests.SchemaTests.test_alter_field_o2o_to_fk" ,
97
- "schema.tests.SchemaTests.test_alter_int_pk_to_int_unique" ,
98
98
"schema.tests.SchemaTests.test_alter_null_to_not_null" ,
99
99
"schema.tests.SchemaTests.test_alter_null_to_not_null_keeping_default" ,
100
100
"schema.tests.SchemaTests.test_alter_primary_key_the_same_name" ,
@@ -121,12 +121,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
121
121
"schema.tests.SchemaTests.test_m2m_through_alter_custom" ,
122
122
"schema.tests.SchemaTests.test_m2m_through_alter_inherited" ,
123
123
"schema.tests.SchemaTests.test_m2m_through_remove" ,
124
- # add/remove_constraint
125
- "schema.tests.SchemaTests.test_composed_constraint_with_fk" ,
126
- "schema.tests.SchemaTests.test_remove_ignored_unique_constraint_not_create_fk_index" ,
127
- "schema.tests.SchemaTests.test_unique_constraint" ,
128
- # constraints not fully implemented.
129
- "introspection.tests.IntrospectionTests.test_get_constraints" ,
130
124
}
131
125
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
132
126
_django_test_expected_failures_bitwise = {
@@ -196,24 +190,6 @@ def django_test_expected_failures(self):
196
190
"model_fields.test_autofield.SmallAutoFieldTests" ,
197
191
"queries.tests.TestInvalidValuesRelation.test_invalid_values" ,
198
192
},
199
- "MongoDB does not enforce UNIQUE constraints." : {
200
- "auth_tests.test_basic.BasicTestCase.test_unicode_username" ,
201
- "auth_tests.test_migrations.ProxyModelWithSameAppLabelTests.test_migrate_with_existing_target_permission" ,
202
- "constraints.tests.UniqueConstraintTests.test_database_constraint" ,
203
- "contenttypes_tests.test_operations.ContentTypeOperationsTests.test_content_type_rename_conflict" ,
204
- "contenttypes_tests.test_operations.ContentTypeOperationsTests.test_existing_content_type_rename" ,
205
- "custom_pk.tests.CustomPKTests.test_unique_pk" ,
206
- "force_insert_update.tests.ForceInsertInheritanceTests.test_force_insert_with_existing_grandparent" ,
207
- "get_or_create.tests.GetOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
208
- "get_or_create.tests.GetOrCreateTestsWithManualPKs.test_savepoint_rollback" ,
209
- "get_or_create.tests.GetOrCreateThroughManyToMany.test_something" ,
210
- "get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test" ,
211
- "get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
212
- "introspection.tests.IntrospectionTests.test_get_constraints_unique_indexes_orders" ,
213
- "model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename" ,
214
- "one_to_one.tests.OneToOneTests.test_multiple_o2o" ,
215
- "queries.test_bulk_update.BulkUpdateTests.test_database_routing_batch_atomicity" ,
216
- },
217
193
"MongoDB does not enforce PositiveIntegerField constraint." : {
218
194
"model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
219
195
},
0 commit comments