tests/admin_views/tests.py | 1 +
tests/fixtures_regress/tests.py | 2 ++
tests/serializers/tests.py | 3 ++-
tests/serializers_regress/tests.py | 2 +-
4 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py
index ae6c66d..956e3e0 100644
a
|
b
|
class AdminViewsNoUrlTest(TestCase):
|
1526 | 1526 | self.client.get('/test_admin/admin/logout/') |
1527 | 1527 | |
1528 | 1528 | |
| 1529 | @unittest.skipUnless(connection.features.can_defer_constraint_checks, "Database backend doesn't support can defer constraint check") |
1529 | 1530 | @override_settings(PASSWORD_HASHERS=('django.contrib.auth.hashers.SHA1PasswordHasher',), |
1530 | 1531 | ROOT_URLCONF="admin_views.urls") |
1531 | 1532 | class AdminViewDeletedObjectsTest(TestCase): |
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index 613cb89..a07fd30 100644
a
|
b
|
class TestFixtures(TestCase):
|
411 | 411 | % widget.pk |
412 | 412 | ) |
413 | 413 | |
| 414 | @skipUnlessDBFeature('supports_forward_references') |
414 | 415 | def test_loaddata_works_when_fixture_has_forward_refs(self): |
415 | 416 | """ |
416 | 417 | Regression for #3615 - Forward references cause fixtures not to load in MySQL (InnoDB) |
… |
… |
class TestFixtures(TestCase):
|
435 | 436 | verbosity=0, |
436 | 437 | ) |
437 | 438 | |
| 439 | @skipUnlessDBFeature('supports_forward_references') |
438 | 440 | @override_settings(FIXTURE_DIRS=[os.path.join(_cur_dir, 'fixtures_1'), |
439 | 441 | os.path.join(_cur_dir, 'fixtures_2')]) |
440 | 442 | def test_loaddata_forward_refs_split_fixtures(self): |
diff --git a/tests/serializers/tests.py b/tests/serializers/tests.py
index 941a231..f6b66a0 100644
a
|
b
|
except ImportError:
|
16 | 16 | |
17 | 17 | from django.core import management, serializers |
18 | 18 | from django.db import transaction, connection |
19 | | from django.test import TestCase, TransactionTestCase, override_settings |
| 19 | from django.test import TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature |
20 | 20 | from django.test.utils import Approximate |
21 | 21 | from django.utils import six |
22 | 22 | from django.utils.six import StringIO |
… |
… |
class SerializersTransactionTestBase(object):
|
267 | 267 | |
268 | 268 | available_apps = ['serializers'] |
269 | 269 | |
| 270 | @skipUnlessDBFeature('supports_forward_references') |
270 | 271 | def test_forward_refs(self): |
271 | 272 | """ |
272 | 273 | Tests that objects ids can be referenced before they are |
diff --git a/tests/serializers_regress/tests.py b/tests/serializers_regress/tests.py
index 22db69b..099c806 100644
a
|
b
|
if connection.features.allows_auto_pk_0:
|
401 | 401 | # Dynamically create serializer tests to ensure that all |
402 | 402 | # registered serializers are automatically tested. |
403 | 403 | |
404 | | |
| 404 | @skipUnless(connection.features.can_defer_constraint_checks, "Database backend doesn't support can defer constraint check") |
405 | 405 | class SerializerTests(TestCase): |
406 | 406 | def test_get_unknown_serializer(self): |
407 | 407 | """ |