@@ -84,29 +84,14 @@ class DatabaseFeatures(BaseDatabaseFeatures):
84
84
"backends.tests.ThreadTests.test_pass_connection_between_threads" ,
85
85
"backends.tests.ThreadTests.test_closing_non_shared_connections" ,
86
86
"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" ,
100
87
# AlterField
101
88
"schema.tests.SchemaTests.test_alter_auto_field_to_integer_field" ,
102
89
"schema.tests.SchemaTests.test_alter_field_add_index_to_integerfield" ,
103
90
"schema.tests.SchemaTests.test_alter_field_default_dropped" ,
104
- "schema.tests.SchemaTests.test_alter_field_fk_keeps_index" ,
105
91
"schema.tests.SchemaTests.test_alter_field_fk_to_o2o" ,
106
92
"schema.tests.SchemaTests.test_alter_field_o2o_keeps_unique" ,
107
93
"schema.tests.SchemaTests.test_alter_field_o2o_to_fk" ,
108
94
"schema.tests.SchemaTests.test_alter_int_pk_to_int_unique" ,
109
- "schema.tests.SchemaTests.test_alter_not_unique_field_to_primary_key" ,
110
95
"schema.tests.SchemaTests.test_alter_null_to_not_null" ,
111
96
"schema.tests.SchemaTests.test_alter_primary_key_the_same_name" ,
112
97
"schema.tests.SchemaTests.test_autofield_to_o2o" ,
@@ -124,21 +109,17 @@ class DatabaseFeatures(BaseDatabaseFeatures):
124
109
"migrations.test_operations.OperationTests.test_alter_unique_together" ,
125
110
"schema.tests.SchemaTests.test_unique_together" ,
126
111
# add/remove_constraint
112
+ "introspection.tests.IntrospectionTests.test_get_constraints" ,
127
113
"migrations.test_operations.OperationTests.test_add_partial_unique_constraint" ,
128
114
"migrations.test_operations.OperationTests.test_create_model_with_partial_unique_constraint" ,
129
115
"migrations.test_operations.OperationTests.test_remove_partial_unique_constraint" ,
130
116
"schema.tests.SchemaTests.test_composed_constraint_with_fk" ,
131
117
"schema.tests.SchemaTests.test_remove_ignored_unique_constraint_not_create_fk_index" ,
132
118
"schema.tests.SchemaTests.test_unique_constraint" ,
133
- # constraints not fully implemented.
134
- "introspection.tests.IntrospectionTests.test_get_constraints" ,
135
119
# pymongo.errors.OperationFailure: Can't rename a collection to itself
136
120
"migrations.test_operations.OperationTests.test_alter_model_table_noop" ,
137
121
"migrations.test_operations.OperationTests.test_rename_model_no_relations_with_db_table_noop" ,
138
122
"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" ,
142
123
}
143
124
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
144
125
_django_test_expected_failures_bitwise = {
@@ -241,6 +222,7 @@ def django_test_expected_failures(self):
241
222
"get_or_create.tests.GetOrCreateThroughManyToMany.test_something" ,
242
223
"get_or_create.tests.UpdateOrCreateTests.test_manual_primary_key_test" ,
243
224
"get_or_create.tests.UpdateOrCreateTestsWithManualPKs.test_create_with_duplicate_primary_key" ,
225
+ "introspection.tests.IntrospectionTests.test_get_constraints_unique_indexes_orders" ,
244
226
"model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename" ,
245
227
"one_to_one.tests.OneToOneTests.test_multiple_o2o" ,
246
228
"queries.test_bulk_update.BulkUpdateTests.test_database_routing_batch_atomicity" ,
@@ -624,14 +606,8 @@ def django_test_expected_failures(self):
624
606
"introspection.tests.IntrospectionTests.test_get_table_description_types" ,
625
607
"introspection.tests.IntrospectionTests.test_smallautofield" ,
626
608
},
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
- },
634
609
"MongoDB can't introspect primary key." : {
610
+ "introspection.tests.IntrospectionTests.test_get_primary_key_column" ,
635
611
"schema.tests.SchemaTests.test_primary_key" ,
636
612
},
637
613
"Known issue querying JSONField." : {
0 commit comments