@@ -21,6 +21,8 @@ class DatabaseFeatures(BaseDatabaseFeatures):
2121 # BSON Date type doesn't support microsecond precision.
2222 supports_microsecond_precision = False
2323 supports_paramstyle_pyformat = False
24+ # Not implemented.
25+ supports_partial_indexes = False
2426 supports_select_difference = False
2527 supports_select_intersection = False
2628 supports_sequence_reset = False
@@ -92,9 +94,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
9294 "schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield" ,
9395 "schema.tests.SchemaTests.test_alter_field_default_dropped" ,
9496 "schema.tests.SchemaTests.test_alter_field_fk_to_o2o" ,
95- "schema.tests.SchemaTests.test_alter_field_o2o_keeps_unique" ,
9697 "schema.tests.SchemaTests.test_alter_field_o2o_to_fk" ,
97- "schema.tests.SchemaTests.test_alter_int_pk_to_int_unique" ,
9898 "schema.tests.SchemaTests.test_alter_null_to_not_null" ,
9999 "schema.tests.SchemaTests.test_alter_null_to_not_null_keeping_default" ,
100100 "schema.tests.SchemaTests.test_alter_primary_key_the_same_name" ,
@@ -121,12 +121,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
121121 "schema.tests.SchemaTests.test_m2m_through_alter_custom" ,
122122 "schema.tests.SchemaTests.test_m2m_through_alter_inherited" ,
123123 "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" ,
130124 }
131125 # $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
132126 _django_test_expected_failures_bitwise = {
@@ -196,24 +190,6 @@ def django_test_expected_failures(self):
196190 "model_fields.test_autofield.SmallAutoFieldTests" ,
197191 "queries.tests.TestInvalidValuesRelation.test_invalid_values" ,
198192 },
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- },
217193 "MongoDB does not enforce PositiveIntegerField constraint." : {
218194 "model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values" ,
219195 },
0 commit comments