Mock for docker_ops.exec_sh that returns a fixed sequence of (rc,out,err).
(results)
| 150 | |
| 151 | |
| 152 | def _exec_sequence(results): |
| 153 | """Mock for docker_ops.exec_sh that returns a fixed sequence of (rc,out,err).""" |
| 154 | it = iter(results) |
| 155 | |
| 156 | def _f(container, cmd, timeout=None): |
| 157 | return next(it) |
| 158 | |
| 159 | return _f |
| 160 | |
| 161 | |
| 162 | @pytest.fixture |
no outgoing calls
no test coverage detected