summaryrefslogtreecommitdiff
path: root/tests/transactions
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2026-02-09 20:28:05 -0500
committerJacob Walls <jacobtylerwalls@gmail.com>2026-02-10 16:06:49 -0500
commitef46215fdecb755c0b77c47fdb8fec670abb5e8b (patch)
tree22e756cd7b23ff5a1ad7bda04bf8145f02c1cebe /tests/transactions
parentd007fcf7291cc3c24d4545e23c759bde22b6a8a6 (diff)
Added various missing test skips observed on MongoDB.
Diffstat (limited to 'tests/transactions')
-rw-r--r--tests/transactions/tests.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/transactions/tests.py b/tests/transactions/tests.py
index a3cd4cafee..bff1a30cf2 100644
--- a/tests/transactions/tests.py
+++ b/tests/transactions/tests.py
@@ -467,6 +467,7 @@ class AtomicMiscTests(TransactionTestCase):
# exists.
connection.savepoint_rollback(sid)
+ @skipUnlessDBFeature("supports_transactions")
def test_mark_for_rollback_on_error_in_transaction(self):
with transaction.atomic(savepoint=False):
# Swallow the intentional error raised.
@@ -512,6 +513,7 @@ class AtomicMiscTests(TransactionTestCase):
Reporter.objects.create()
+@skipUnlessDBFeature("supports_transactions")
class NonAutocommitTests(TransactionTestCase):
available_apps = []
@@ -520,6 +522,7 @@ class NonAutocommitTests(TransactionTestCase):
self.addCleanup(transaction.set_autocommit, True)
self.addCleanup(transaction.rollback)
+ @skipUnlessDBFeature("supports_foreign_keys")
def test_orm_query_after_error_and_rollback(self):
"""
ORM queries are allowed after an error and a rollback in non-autocommit