mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[1.7.x] Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi.
Backport of 99f5ea9cc8 from master
This commit is contained in:
@@ -405,6 +405,7 @@ class TestFixtures(TestCase):
|
||||
% widget.pk
|
||||
)
|
||||
|
||||
@skipUnlessDBFeature('supports_forward_references')
|
||||
def test_loaddata_works_when_fixture_has_forward_refs(self):
|
||||
"""
|
||||
Regression for #3615 - Forward references cause fixtures not to load in MySQL (InnoDB)
|
||||
@@ -429,6 +430,7 @@ class TestFixtures(TestCase):
|
||||
verbosity=0,
|
||||
)
|
||||
|
||||
@skipUnlessDBFeature('supports_forward_references')
|
||||
@override_settings(FIXTURE_DIRS=[os.path.join(_cur_dir, 'fixtures_1'),
|
||||
os.path.join(_cur_dir, 'fixtures_2')])
|
||||
def test_loaddata_forward_refs_split_fixtures(self):
|
||||
|
||||
Reference in New Issue
Block a user