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).
This commit is contained in:
parent
fb871f66a8
commit
7a4233b69c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue