(self, *args, **kwargs)
| 32 | |
| 33 | def _mock(compose, command_tuple): |
| 34 | def _execute(self, *args, **kwargs): |
| 35 | params = [f'{k}={v}' |
| 36 | for k, v in self.config.params.items()] |
| 37 | command = ' '.join(chain(params, command_tuple, args)) |
| 38 | click.echo(command) |
| 39 | return CompletedProcess([], 0) |
| 40 | return MethodType(_execute, compose) |
| 41 | |
| 42 | compose._execute_docker = _mock(compose, command_tuple=('docker',)) |