From 8782b11f1e78453d84c5d03e9c7cbce04355a1c5 Mon Sep 17 00:00:00 2001 From: zhangliyong Date: Mon, 1 Sep 2014 14:08:36 +0700 Subject: [PATCH] Adjust test_requeue --- tests/test_scripts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_scripts.py b/tests/test_scripts.py index 54b0104..c92a908 100644 --- a/tests/test_scripts.py +++ b/tests/test_scripts.py @@ -49,8 +49,9 @@ class TestRQCli(RQTestCase): runner = CliRunner() result = runner.invoke(rq_cli.main, ['-u', self.redis_url, 'requeue']) self.assertEqual(result.exit_code, 0) - self.assertIn('Requeue failed jobs: 1', result.output) - self.assertIn('Requeue failed: 0', result.output) + self.assertIn('Requeueing 1 jobs from FailedQueue', result.output) + self.assertIn('Unable to requeue 0 jobs from FailedQueue', + result.output) def test_info(self): """rq -u info -i 0"""