(
cap_out, store, repo, opts, expected_outputs, expected_ret, stage,
config_file=C.CONFIG_FILE,
)
| 143 | |
| 144 | |
| 145 | def _test_run( |
| 146 | cap_out, store, repo, opts, expected_outputs, expected_ret, stage, |
| 147 | config_file=C.CONFIG_FILE, |
| 148 | ): |
| 149 | if stage: |
| 150 | stage_a_file() |
| 151 | args = run_opts(**opts) |
| 152 | ret, printed = _do_run(cap_out, store, repo, args, config_file=config_file) |
| 153 | |
| 154 | assert ret == expected_ret, (ret, expected_ret, printed) |
| 155 | for expected_output_part in expected_outputs: |
| 156 | assert expected_output_part in printed |
| 157 | |
| 158 | |
| 159 | def test_run_all_hooks_failing(cap_out, store, repo_with_failing_hook): |
no test coverage detected