Core management commands should have defined success/fail semantics
|Reported by:||jdunck||Owned by:||nobody|
|Component:||Core (Management commands)||Version:||1.3|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
call_command('loaddata'...) does not throw an exception if loading the fixture fails. I was trying to use this in a test runner, and it would be nice to early-exit the runner if a fixture load fails.
It would be nice of call_command returned False or threw an exception upon the command failing.