Skip to content

Commit 0a419a1

Browse files
committed
add force_insert_update tests to CI
1 parent 8e53ed0 commit 0a419a1

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
@@ -126,6 +126,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
126126
# subclasses of BaseDatabaseIntrospection may require a get_constraints() method
127127
"migrations.test_operations.OperationTests.test_add_func_unique_constraint",
128128
"migrations.test_operations.OperationTests.test_remove_func_unique_constraint",
129+
# MongoDB's "duplicate key error" must be raised as IntegrityError, not
130+
# DatabaseError.
131+
"force_insert_update.tests.ForceInsertInheritanceTests.test_force_insert_diamond_mti",
132+
"force_insert_update.tests.ForceTests.test_force_update",
129133
}
130134
# $bitAnd, #bitOr, and $bitXor are new in MongoDB 6.3.
131135
_django_test_expected_failures_bitwise = {

0 commit comments

Comments
 (0)