MCPcopy Create free account
hub / github.com/python-arq/arq / test_custom_log_dict

Function test_custom_log_dict

tests/test_cli.py:72–83  ·  view source on GitHub ↗
(mocker, loop, cli_argument, log_dict_to_use)

Source from the content-addressed store, hash-verified

70 ],
71)
72def test_custom_log_dict(mocker, loop, cli_argument, log_dict_to_use):
73 mocker.patch('asyncio.get_event_loop', lambda: loop)
74 mock_dictconfig = mocker.MagicMock()
75 mocker.patch('logging.config.dictConfig', mock_dictconfig)
76 arq_arguments = ['tests.test_cli.WorkerSettings']
77 if cli_argument is not None:
78 arq_arguments.append(cli_argument)
79
80 runner = CliRunner()
81 result = runner.invoke(cli, arq_arguments)
82 assert result.exit_code == 0
83 mock_dictconfig.assert_called_with(log_dict_to_use)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…