From: Tomas Babej Date: Sun, 22 Mar 2015 23:40:04 +0000 (+0100) Subject: tests: Allow failure when testing failing command with return_all X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/e029548d495d356ef7b00d2b4f667e8606a1bee4?ds=inline;hp=--cc tests: Allow failure when testing failing command with return_all --- e029548d495d356ef7b00d2b4f667e8606a1bee4 diff --git a/tasklib/tests.py b/tasklib/tests.py index 29b88a0..990bc3b 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -683,7 +683,8 @@ class TaskTest(TasklibTest): def test_return_all_from_failed_executed_command(self): Task(self.tw, description="test task", tags=['test']).save() - out, err, rc = self.tw.execute_command(['countinvalid'], return_all=True) + out, err, rc = self.tw.execute_command(['countinvalid'], + return_all=True, allow_failure=False) self.assertNotEqual(rc, 0)