diff options
author | Yang Yang <y4n9squared@gmail.com> | 2022-08-06 19:48:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-07 06:48:00 +0700 |
commit | 9db728921d92b3edc8107154e07362b3ed7a8e24 (patch) | |
tree | 09d59af2292f1839ac47deeb86a1d486db0fe4c4 /tests/test_cli.py | |
parent | 01635dc80926fd31915f0dcbc30c9c41056b6330 (diff) | |
download | rq-9db728921d92b3edc8107154e07362b3ed7a8e24.tar.gz |
Improve the lint situation (#1688)
* Move common flake8 options into config file
Currently --max-line-length being specified in two places. Just use the
existing value in the config file as the source of truth.
Move --count and --statistics to config file as well.
* Fix some lints
Diffstat (limited to 'tests/test_cli.py')
-rw-r--r-- | tests/test_cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_cli.py b/tests/test_cli.py index e428f92..07b9c39 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -406,7 +406,7 @@ class TestRQCli(RQTestCase): runner = CliRunner() job = q.enqueue(say_hello) runner.invoke(main, ['worker', '-u', self.redis_url, - '--serializer rq.serializer.JSONSerializer']) + '--serializer rq.serializer.JSONSerializer']) self.assertIn(job.id, q.job_ids) def test_cli_enqueue(self): @@ -439,7 +439,7 @@ class TestRQCli(RQTestCase): self.assertTrue(queue.is_empty()) runner = CliRunner() - result = runner.invoke(main, ['enqueue', '-u', self.redis_url, '-S', 'rq.serializers.JSONSerializer', 'tests.fixtures.say_hello']) + result = runner.invoke(main, ['enqueue', '-u', self.redis_url, '-S', 'rq.serializers.JSONSerializer', 'tests.fixtures.say_hello']) self.assert_normal_execution(result) prefix = 'Enqueued tests.fixtures.say_hello() with job-id \'' |