mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +00:00
Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi.
This commit is contained in:
parent
5a3ae7e260
commit
99f5ea9cc8
4 changed files with 7 additions and 2 deletions
|
@ -16,7 +16,7 @@ except ImportError:
|
|||
|
||||
from django.core import management, serializers
|
||||
from django.db import transaction, connection
|
||||
from django.test import TestCase, TransactionTestCase, override_settings
|
||||
from django.test import TestCase, TransactionTestCase, override_settings, skipUnlessDBFeature
|
||||
from django.test.utils import Approximate
|
||||
from django.utils import six
|
||||
from django.utils.six import StringIO
|
||||
|
@ -267,6 +267,7 @@ class SerializersTransactionTestBase(object):
|
|||
|
||||
available_apps = ['serializers']
|
||||
|
||||
@skipUnlessDBFeature('supports_forward_references')
|
||||
def test_forward_refs(self):
|
||||
"""
|
||||
Tests that objects ids can be referenced before they are
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue