From 261f4ac3d52f4456b8abfc70b35d52529b36319b Mon Sep 17 00:00:00 2001 From: Theo Date: Fri, 8 Sep 2017 10:30:25 +0100 Subject: [PATCH] Fixed #866 - Flak8 errors --- tests/test_worker.py | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/tests/test_worker.py b/tests/test_worker.py index 9c5f3e6..eb0ce05 100644 --- a/tests/test_worker.py +++ b/tests/test_worker.py @@ -471,22 +471,14 @@ class TestWorker(RQTestCase): logging work properly""" q = Queue("foo") w = Worker([q]) - q.enqueue( - 'tests.fixtures.say_hello', - name='阿达姆', - description='你好 世界!') - self.assertEqual( - w.work(burst=True), - True, - 'Expected at least some work done.') - q.enqueue( - 'tests.fixtures.say_hello_unicode', - name='阿达姆', - description='你好 世界!') - self.assertEqual( - w.work(burst=True), - True, - 'Expected at least some work done.') + q.enqueue('tests.fixtures.say_hello', name='阿达姆', + description='你好 世界!') + self.assertEqual(w.work(burst=True), True, + 'Expected at least some work done.') + q.enqueue('tests.fixtures.say_hello_unicode', name='阿达姆', + description='你好 世界!') + self.assertEqual(w.work(burst=True), True, + 'Expected at least some work done.') def test_suspend_worker_execution(self): """Test Pause Worker Execution"""