(mocker, loop, cli_argument, log_dict_to_use)
| 70 | ], |
| 71 | ) |
| 72 | def 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) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…