Skip to content

Commit 7fe880e

Browse files
committed
move db_default expected failures to skips
1 parent 8d87249 commit 7fe880e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

django_mongodb/features.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
3333
uses_savepoints = False
3434

3535
_django_test_expected_failures = {
36-
# Database defaults not supported: bson.errors.InvalidDocument:
37-
# cannot encode object: <django.db.models.expressions.DatabaseDefault
38-
"basic.tests.ModelInstanceCreationTests.test_save_primary_with_db_default",
3936
# 'NulledTransform' object has no attribute 'as_mql'.
4037
"lookup.tests.LookupTests.test_exact_none_transform",
4138
# "Save with update_fields did not affect any rows."
@@ -107,7 +104,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
107104
"schema.tests.SchemaTests.test_autofield_to_o2o",
108105
# AlterField (rename)
109106
"schema.tests.SchemaTests.test_rename",
110-
"schema.tests.SchemaTests.test_rename_keep_db_default",
111107
# AlterField (db_index)
112108
"schema.tests.SchemaTests.test_indexes",
113109
"schema.tests.SchemaTests.test_remove_constraints_capital_letters",
@@ -147,7 +143,11 @@ def django_test_expected_failures(self):
147143

148144
django_test_skips = {
149145
"Database defaults aren't supported by MongoDB.": {
146+
# bson.errors.InvalidDocument: cannot encode object:
147+
# <django.db.models.expressions.DatabaseDefault
148+
"basic.tests.ModelInstanceCreationTests.test_save_primary_with_db_default",
150149
"schema.tests.SchemaTests.test_db_default_output_field_resolving",
150+
"schema.tests.SchemaTests.test_rename_keep_db_default",
151151
},
152152
"Insert expressions aren't supported.": {
153153
"bulk_create.tests.BulkCreateTests.test_bulk_insert_now",

0 commit comments

Comments
 (0)