Skip to content

Commit

Permalink
add workers arg to CLI
Browse files Browse the repository at this point in the history
fix test

try again
  • Loading branch information
Graeme22 committed Jan 28, 2025
1 parent f4b9ea7 commit f376bbd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ def test_run_watch(mocker, cancel_remaining_task):
assert 'files changed, reloading arq worker...' in result.output


def test_multiple_workers(cancel_remaining_task, mocker, loop):
mocker.patch('asyncio.get_event_loop', lambda: loop)
def test_multiple_workers():
runner = CliRunner()
result = runner.invoke(cli, ['tests.test_cli.WorkerSettings', '--workers', '4'])
assert 'clients_connected=4' in result.output
Expand Down

0 comments on commit f376bbd

Please sign in to comment.