@@ -84,29 +84,14 @@ class DatabaseFeatures(BaseDatabaseFeatures):
8484 "backends.tests.ThreadTests.test_pass_connection_between_threads" ,
8585 "backends.tests.ThreadTests.test_closing_non_shared_connections" ,
8686 "backends.tests.ThreadTests.test_default_connection_thread_local" ,
87- # Add/RemoveIndex
88- "migrations.test_operations.OperationTests.test_add_index" ,
89- "migrations.test_operations.OperationTests.test_alter_field_with_index" ,
90- "migrations.test_operations.OperationTests.test_remove_index" ,
91- "migrations.test_operations.OperationTests.test_rename_index" ,
92- "migrations.test_operations.OperationTests.test_rename_index_unknown_unnamed_index" ,
93- "migrations.test_operations.OperationTests.test_rename_index_unnamed_index" ,
94- "schema.tests.SchemaTests.test_add_remove_index" ,
95- "schema.tests.SchemaTests.test_composed_desc_index_with_fk" ,
96- "schema.tests.SchemaTests.test_composed_index_with_fk" ,
97- "schema.tests.SchemaTests.test_create_index_together" ,
98- "schema.tests.SchemaTests.test_order_index" ,
99- "schema.tests.SchemaTests.test_text_field_with_db_index" ,
10087 # AlterField
10188 "schema.tests.SchemaTests.test_alter_auto_field_to_integer_field" ,
10289 "schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield" ,
10390 "schema.tests.SchemaTests.test_alter_field_default_dropped" ,
104- "schema.tests.SchemaTests.test_alter_field_fk_keeps_index" ,
10591 "schema.tests.SchemaTests.test_alter_field_fk_to_o2o" ,
10692 "schema.tests.SchemaTests.test_alter_field_o2o_keeps_unique" ,
10793 "schema.tests.SchemaTests.test_alter_field_o2o_to_fk" ,
10894 "schema.tests.SchemaTests.test_alter_int_pk_to_int_unique" ,
109- "schema.tests.SchemaTests.test_alter_not_unique_field_to_primary_key" ,
11095 "schema.tests.SchemaTests.test_alter_null_to_not_null" ,
11196 "schema.tests.SchemaTests.test_alter_primary_key_the_same_name" ,
11297 "schema.tests.SchemaTests.test_autofield_to_o2o" ,
@@ -124,21 +109,17 @@ class DatabaseFeatures(BaseDatabaseFeatures):
124109 "migrations.test_operations.OperationTests.test_alter_unique_together" ,
125110 "schema.tests.SchemaTests.test_unique_together" ,
126111 # add/remove_constraint
112+ "introspection.tests.IntrospectionTests.test_get_constraints" ,
127113 "migrations.test_operations.OperationTests.test_add_partial_unique_constraint" ,
128114 "migrations.test_operations.OperationTests.test_create_model_with_partial_unique_constraint" ,
129115 "migrations.test_operations.OperationTests.test_remove_partial_unique_constraint" ,
130116 "schema.tests.SchemaTests.test_composed_constraint_with_fk" ,
131117 "schema.tests.SchemaTests.test_remove_ignored_unique_constraint_not_create_fk_index" ,
132118 "schema.tests.SchemaTests.test_unique_constraint" ,
133- # constraints not fully implemented.
134- "introspection.tests.IntrospectionTests.test_get_constraints" ,
135119 # pymongo.errors.OperationFailure: Can't rename a collection to itself
136120 "migrations.test_operations.OperationTests.test_alter_model_table_noop" ,
137121 "migrations.test_operations.OperationTests.test_rename_model_no_relations_with_db_table_noop" ,
138122 "migrations.test_operations.OperationTests.test_rename_model_with_db_table_rename_m2m" ,
139- # subclasses of BaseDatabaseIntrospection may require a get_constraints() method
140- "migrations.test_operations.OperationTests.test_add_func_unique_constraint" ,
141- "migrations.test_operations.OperationTests.test_remove_func_unique_constraint" ,
142123 }
143124 # $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
144125 _django_test_expected_failures_bitwise = {
@@ -241,6 +222,7 @@ def django_test_expected_failures(self):
241222 "get_or_create.tests.GetOrCreateThroughManyToMany.test_something" ,
242223 "get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test" ,
243224 "get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
225+ "introspection.tests.IntrospectionTests.test_get_constraints_unique_indexes_orders" ,
244226 "model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename" ,
245227 "one_to_one.tests.OneToOneTests.test_multiple_o2o" ,
246228 "queries.test_bulk_update.BulkUpdateTests.test_database_routing_batch_atomicity" ,
@@ -624,14 +606,8 @@ def django_test_expected_failures(self):
624606 "introspection.tests.IntrospectionTests.test_get_table_description_types" ,
625607 "introspection.tests.IntrospectionTests.test_smallautofield" ,
626608 },
627- "DatabaseIntrospection.get_constraints() not implemented." : {
628- "introspection.tests.IntrospectionTests.test_get_constraints" ,
629- "introspection.tests.IntrospectionTests.test_get_constraints_index_types" ,
630- "introspection.tests.IntrospectionTests.test_get_constraints_indexes_orders" ,
631- "introspection.tests.IntrospectionTests.test_get_constraints_unique_indexes_orders" ,
632- "introspection.tests.IntrospectionTests.test_get_primary_key_column" ,
633- },
634609 "MongoDB can't introspect primary key." : {
610+ "introspection.tests.IntrospectionTests.test_get_primary_key_column" ,
635611 "schema.tests.SchemaTests.test_primary_key" ,
636612 },
637613 "Known issue querying JSONField." : {
0 commit comments