diff options
| author | Tim Graham <timograham@gmail.com> | 2026-02-09 20:28:05 -0500 |
|---|---|---|
| committer | Jacob Walls <jacobtylerwalls@gmail.com> | 2026-02-10 16:06:49 -0500 |
| commit | ef46215fdecb755c0b77c47fdb8fec670abb5e8b (patch) | |
| tree | 22e756cd7b23ff5a1ad7bda04bf8145f02c1cebe /tests/migrations | |
| parent | d007fcf7291cc3c24d4545e23c759bde22b6a8a6 (diff) | |
Added various missing test skips observed on MongoDB.
Diffstat (limited to 'tests/migrations')
| -rw-r--r-- | tests/migrations/test_executor.py | 1 | ||||
| -rw-r--r-- | tests/migrations/test_operations.py | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/migrations/test_executor.py b/tests/migrations/test_executor.py index dd6793b533..060a35e379 100644 --- a/tests/migrations/test_executor.py +++ b/tests/migrations/test_executor.py @@ -162,6 +162,7 @@ class ExecutorTests(MigrationTestBase): self.assertTrue(Publisher.objects.exists()) self.assertTableNotExists("migrations_book") + @skipUnlessDBFeature("supports_transactions") @override_settings( MIGRATION_MODULES={"migrations": "migrations.test_migrations_atomic_operation"} ) diff --git a/tests/migrations/test_operations.py b/tests/migrations/test_operations.py index 90c22bc73b..85295d8e50 100644 --- a/tests/migrations/test_operations.py +++ b/tests/migrations/test_operations.py @@ -5809,6 +5809,7 @@ class OperationTests(OperationTestBase): with self.assertRaisesMessage(ValueError, msg): migrations.RunPython(code=migrations.RunPython.noop, reverse_code="invalid") + @skipUnlessDBFeature("supports_transactions") def test_run_python_atomic(self): """ Tests the RunPython operation correctly handles the "atomic" keyword |
