summaryrefslogtreecommitdiff
path: root/tests/fixtures_regress
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-10-14 23:15:43 +0200
committerClaude Paroz <claude@2xlibre.net>2014-10-15 09:17:44 +0200
commit7a893ee77171d6cc37ffd40d67af6161633235e0 (patch)
tree41942c4662992161330873d1bfd641a59179ea36 /tests/fixtures_regress
parent9743aa5436448a709a6ae82bb905dc4fae56cb80 (diff)
downloaddjango-7a893ee77171d6cc37ffd40d67af6161633235e0.tar.gz
Fixed #23651 -- Isolated non-existent fixture tests
Previous versions of the tests were buggy, as initial_data.json did exist and the test wasn't failing. It was finally failing on Python 3.4.2. Thanks Raphaƫl Hertzog for the report (and Debian bug #765117 contributors).
Diffstat (limited to 'tests/fixtures_regress')
-rw-r--r--tests/fixtures_regress/tests.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/tests/fixtures_regress/tests.py b/tests/fixtures_regress/tests.py
index cc95a41b10..f8f13f824a 100644
--- a/tests/fixtures_regress/tests.py
+++ b/tests/fixtures_regress/tests.py
@@ -17,7 +17,6 @@ from django.db.models import signals
from django.test import (TestCase, TransactionTestCase, skipIfDBFeature,
skipUnlessDBFeature)
from django.test import override_settings
-from django.utils.encoding import force_text
from django.utils._os import upath
from django.utils import six
from django.utils.six import PY3, StringIO
@@ -465,18 +464,6 @@ class TestFixtures(TestCase):
verbosity=0,
)
- def test_loaddata_not_existant_fixture_file(self):
- stdout_output = StringIO()
- with warnings.catch_warnings(record=True):
- management.call_command(
- 'loaddata',
- 'this_fixture_doesnt_exist',
- verbosity=2,
- stdout=stdout_output,
- )
- self.assertTrue("No fixture 'this_fixture_doesnt_exist' in" in
- force_text(stdout_output.getvalue()))
-
def test_ticket_20820(self):
"""
Regression for ticket #20820 -- loaddata on a model that inherits