(cap_out, store, in_git_dir, t1, t2, expected)
| 290 | ), |
| 291 | ) |
| 292 | def test_verbose_duration(cap_out, store, in_git_dir, t1, t2, expected): |
| 293 | write_config('.', {'repo': 'meta', 'hooks': [{'id': 'identity'}]}) |
| 294 | cmd_output('git', 'add', '.') |
| 295 | opts = run_opts(verbose=True) |
| 296 | with mock.patch.object(time, 'monotonic', side_effect=(t1, t2)): |
| 297 | ret, printed = _do_run(cap_out, store, str(in_git_dir), opts) |
| 298 | assert ret == 0 |
| 299 | assert expected in printed |
| 300 | |
| 301 | |
| 302 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected