From e029548d495d356ef7b00d2b4f667e8606a1bee4 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 23 Mar 2015 00:40:04 +0100 Subject: [PATCH 1/1] tests: Allow failure when testing failing command with return_all --- tasklib/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- 2.39.5