summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-06-11 11:45:18 -0400
committerTim Graham <timograham@gmail.com>2014-06-11 11:45:18 -0400
commit99f5ea9cc8f41724e07b88c6142d0092961ce5e0 (patch)
tree9a25387defe59412db425a5764230695b7dd0c4a /tests/fixtures_regress
parent5a3ae7e260f68602b25dbe3fc6ed13249a5c6515 (diff)
downloaddjango-99f5ea9cc8f41724e07b88c6142d0092961ce5e0.tar.gz
Fixed #22653 -- Added some database feature flags to tests.
Thanks Rahul Priyadarshi.
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r--tests/fixtures_regress/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index a9d3ae170b..c01411e158 100644
--- a/tests/fixtures_regress/tests.py
+++ b/tests/fixtures_regress/tests.py
@@ -411,6 +411,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)
@@ -435,6 +436,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):