Skip to content

Commit 80906b2

Browse files
committed
add force_insert_update tests to CI
1 parent 8b98b58 commit 80906b2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/test-python.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
expressions_case
8383
defer
8484
defer_regress
85+
force_insert_update
8586
from_db_value
8687
generic_relations
8788
generic_relations_regress

django_mongodb/features.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
135135
# subclasses of BaseDatabaseIntrospection may require a get_constraints() method
136136
"migrations.test_operations.OperationTests.test_add_func_unique_constraint",
137137
"migrations.test_operations.OperationTests.test_remove_func_unique_constraint",
138+
# MongoDB's "duplicate key error" must be raised as IntegrityError, not
139+
# DatabaseError.
140+
"force_insert_update.tests.ForceInsertInheritanceTests.test_force_insert_diamond_mti",
141+
"force_insert_update.tests.ForceTests.test_force_update",
138142
}
139143
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
140144
_django_test_expected_failures_bitwise = {

0 commit comments

Comments
 (0)