Skip to content

Commit 2639153

Browse files
committed
add update tests
1 parent df4003d commit 2639153

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
model_fields
7979
or_lookups
8080
sessions_tests
81+
update
8182
8283
docs:
8384
name: Docs Checks

django_mongodb/features.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
5151
},
5252
"QuerySet.update() with expression not supported.": {
5353
"model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values",
54+
"update.tests.AdvancedTests.test_update_annotated_queryset",
55+
"update.tests.AdvancedTests.test_update_negated_f",
56+
"update.tests.AdvancedTests.test_update_negated_f_conditional_annotation",
57+
"update.tests.AdvancedTests.test_update_transformed_field",
5458
},
5559
"AutoField not supported.": {
5660
"model_fields.test_autofield.AutoFieldTests",
@@ -93,6 +97,9 @@ class DatabaseFeatures(BaseDatabaseFeatures):
9397
"Test assumes integer primary key.": {
9498
"model_fields.test_foreignkey.ForeignKeyTests.test_to_python",
9599
},
100+
"QuerySet.distinct() is not supported.": {
101+
"update.tests.AdvancedTests.test_update_all",
102+
},
96103
"QuerySet.extra() is not supported.": {
97104
"basic.tests.ModelTest.test_extra_method_select_argument_with_dashes",
98105
"basic.tests.ModelTest.test_extra_method_select_argument_with_dashes_and_values",
@@ -111,5 +118,13 @@ class DatabaseFeatures(BaseDatabaseFeatures):
111118
"defer_regress.tests.DeferRegressionTest.test_ticket_16409",
112119
"model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk",
113120
"model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys",
121+
"update.tests.AdvancedTests.test_update_annotated_multi_table_queryset",
122+
"update.tests.AdvancedTests.test_update_fk",
123+
"update.tests.AdvancedTests.test_update_ordered_by_inline_m2m_annotation",
124+
"update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation",
125+
"update.tests.AdvancedTests.test_update_ordered_by_m2m_annotation_desc",
126+
"update.tests.SimpleTest.test_empty_update_with_inheritance",
127+
"update.tests.SimpleTest.test_foreign_key_update_with_id",
128+
"update.tests.SimpleTest.test_nonempty_update_with_inheritance",
114129
},
115130
}

0 commit comments

Comments
 (0)