@@ -137,19 +137,6 @@ def django_test_expected_failures(self):
137137 "schema.tests.SchemaTests.test_rename_keep_db_default" ,
138138 "validation.test_unique.PerformUniqueChecksTest.test_unique_db_default" ,
139139 },
140- "Insert expressions aren't supported." : {
141- "basic.tests.ModelTest.test_save_expressions" ,
142- "bulk_create.tests.BulkCreateTests.test_bulk_insert_now" ,
143- "bulk_create.tests.BulkCreateTests.test_bulk_insert_expressions" ,
144- "expressions.tests.BasicExpressionsTests.test_new_object_create" ,
145- "expressions.tests.BasicExpressionsTests.test_new_object_save" ,
146- "expressions.tests.BasicExpressionsTests.test_object_create_with_aggregate" ,
147- "expressions.tests.BasicExpressionsTests.test_object_create_with_f_expression_in_subquery" ,
148- "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
149- # PI()
150- "db_functions.math.test_round.RoundTests.test_decimal_with_precision" ,
151- "db_functions.math.test_round.RoundTests.test_float_with_precision" ,
152- },
153140 "MongoDB doesn't rename an index when a field is renamed." : {
154141 "migrations.test_operations.OperationTests.test_rename_field_index_together" ,
155142 "migrations.test_operations.OperationTests.test_rename_field_unique_together" ,
@@ -480,6 +467,24 @@ def django_test_skips(self):
480467
481468 # Tests that are expected to raise certain exceptions:
482469 _django_test_expected_raises = {
470+ (
471+ NotSupportedError ,
472+ "MongoDB does not support creating models with expressions: got "
473+ "Now() for field pub_date." ,
474+ ): {
475+ "basic.tests.ModelTest.test_save_expressions" ,
476+ },
477+ (NotSupportedError , "MongoDB does not support creating models with expressions" ): {
478+ "bulk_create.tests.BulkCreateTests.test_bulk_insert_now" ,
479+ "bulk_create.tests.BulkCreateTests.test_bulk_insert_expressions" ,
480+ "expressions.tests.BasicExpressionsTests.test_new_object_create" ,
481+ "expressions.tests.BasicExpressionsTests.test_new_object_save" ,
482+ "expressions.tests.BasicExpressionsTests.test_object_create_with_aggregate" ,
483+ "expressions.tests.BasicExpressionsTests.test_object_create_with_f_expression_in_subquery" ,
484+ "expressions.tests.BasicExpressionsTests.test_object_update_unsaved_objects" ,
485+ "db_functions.math.test_round.RoundTests.test_decimal_with_precision" ,
486+ "db_functions.math.test_round.RoundTests.test_float_with_precision" ,
487+ },
483488 (NotSupportedError , "Pattern lookups on UUIDField are not supported." ): {
484489 "model_fields.test_uuid.TestQuerying.test_contains" ,
485490 "model_fields.test_uuid.TestQuerying.test_endswith" ,
0 commit comments