Kaydet (Commit) 7a4233b6 authored tarafından Claude Paroz's avatar Claude Paroz

Removed a duplicate test in fixtures_regress.

test_abort_loaddata_on_error was exactly the same test as
test_empty (error is tested in test_error_message).
üst fb871f66
......@@ -185,25 +185,6 @@ class TestFixtures(TestCase):
"No fixture data found for 'empty'. (File format may be invalid.)\n"
)
def test_abort_loaddata_on_error(self):
"""
Test for ticket #4371 -- If any of the fixtures contain an error,
loading is aborted.
Validate that error conditions are caught correctly
"""
stderr = BytesIO()
management.call_command(
'loaddata',
'empty',
verbosity=0,
commit=False,
stderr=stderr,
)
self.assertEqual(
stderr.getvalue(),
"No fixture data found for 'empty'. (File format may be invalid.)\n"
)
def test_error_message(self):
"""
(Regression for #9011 - error message is correct)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment