@@ -92,17 +92,17 @@ class DatabaseFeatures(BaseDatabaseFeatures):
9292 "schema.tests.SchemaTests.test_composed_constraint_with_fk" ,
9393 "schema.tests.SchemaTests.test_remove_ignored_unique_constraint_not_create_fk_index" ,
9494 "schema.tests.SchemaTests.test_unique_constraint" ,
95- # Handle column default value.
96- # https://github.com/mongodb-labs/django-mongodb/issues/155
95+ # Column default values aren't handled when a field raises
96+ # EmptyResultSet: https://github.com/mongodb-labs/django-mongodb/issues/155
9797 "annotations.tests.NonAggregateAnnotationTestCase.test_empty_queryset_annotation" ,
9898 "db_functions.comparison.test_coalesce.CoalesceTests.test_empty_queryset" ,
99- # Union as subquery is not mapping the parent parameter and collections.
99+ # Union as subquery is not mapping the parent parameter and collections:
100100 # https://github.com/mongodb-labs/django-mongodb/issues/156
101101 "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_in_subquery_related_outerref" ,
102102 "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_in_subquery" ,
103103 "queries.test_qs_combinators.QuerySetSetOperationTests.test_union_in_with_ordering" ,
104- # ObjectId type mismatch in a subquery (casted as string).
105- # TODO: Create a ticket.
104+ # ObjectId type mismatch in a subquery:
105+ # https://github.com/mongodb-labs/django-mongodb/issues/161
106106 "queries.tests.RelatedLookupTypeTests.test_values_queryset_lookup" ,
107107 "queries.tests.ValuesSubqueryTests.test_values_in_subquery" ,
108108 }
@@ -218,9 +218,9 @@ def django_test_expected_failures(self):
218218 },
219219 "Test assumes integer primary key." : {
220220 "db_functions.comparison.test_cast.CastTests.test_cast_to_integer_foreign_key" ,
221+ "expressions.tests.BasicExpressionsTests.test_nested_subquery_outer_ref_with_autofield" ,
221222 "model_fields.test_foreignkey.ForeignKeyTests.test_to_python" ,
222223 "queries.test_qs_combinators.QuerySetSetOperationTests.test_order_raises_on_non_selected_column" ,
223- "expressions.tests.BasicExpressionsTests.test_nested_subquery_outer_ref_with_autofield" ,
224224 },
225225 "Cannot use QuerySet.delete() when querying across multiple collections on MongoDB." : {
226226 "delete.tests.FastDeleteTests.test_fast_delete_aggregation" ,
@@ -233,6 +233,16 @@ def django_test_expected_failures(self):
233233 "delete_regress.tests.Ticket19102Tests.test_ticket_19102_select_related" ,
234234 "one_to_one.tests.OneToOneTests.test_o2o_primary_key_delete" ,
235235 },
236+ "Cannot use QuerySet.delete() when a subquery is required." : {
237+ "delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level" ,
238+ "many_to_many.tests.ManyToManyTests.test_assign" ,
239+ "many_to_many.tests.ManyToManyTests.test_assign_ids" ,
240+ "many_to_many.tests.ManyToManyTests.test_clear" ,
241+ "many_to_many.tests.ManyToManyTests.test_remove" ,
242+ "many_to_many.tests.ManyToManyTests.test_reverse_assign_with_queryset" ,
243+ "many_to_many.tests.ManyToManyTests.test_set" ,
244+ "many_to_many.tests.ManyToManyTests.test_set_existing_different_type" ,
245+ },
236246 "Cannot use QuerySet.update() when querying across multiple collections on MongoDB." : {
237247 "expressions.tests.BasicExpressionsTests.test_filter_with_join" ,
238248 "queries.tests.Queries4Tests.test_ticket7095" ,
@@ -337,16 +347,6 @@ def django_test_expected_failures(self):
337347 "schema.tests.SchemaTests.test_rename_column_renames_deferred_sql_references" ,
338348 "schema.tests.SchemaTests.test_rename_table_renames_deferred_sql_references" ,
339349 },
340- "Cannot use QuerySet.delete() when a subquery is required." : {
341- "delete_regress.tests.DeleteTests.test_self_reference_with_through_m2m_at_second_level" ,
342- "many_to_many.tests.ManyToManyTests.test_assign" ,
343- "many_to_many.tests.ManyToManyTests.test_assign_ids" ,
344- "many_to_many.tests.ManyToManyTests.test_clear" ,
345- "many_to_many.tests.ManyToManyTests.test_remove" ,
346- "many_to_many.tests.ManyToManyTests.test_reverse_assign_with_queryset" ,
347- "many_to_many.tests.ManyToManyTests.test_set" ,
348- "many_to_many.tests.ManyToManyTests.test_set_existing_different_type" ,
349- },
350350 "Test executes raw SQL." : {
351351 "aggregation.tests.AggregateTestCase.test_coalesced_empty_result_set" ,
352352 "aggregation_regress.tests.AggregationTests.test_annotate_with_extra" ,
0 commit comments