(cap_out, store, tempdir_factory)
| 865 | |
| 866 | |
| 867 | def test_post_checkout_hook(cap_out, store, tempdir_factory): |
| 868 | path = git_dir(tempdir_factory) |
| 869 | config = { |
| 870 | 'repo': 'meta', 'hooks': [ |
| 871 | {'id': 'identity', 'stages': ['post-checkout']}, |
| 872 | ], |
| 873 | } |
| 874 | add_config_to_repo(path, config) |
| 875 | |
| 876 | with cwd(path): |
| 877 | _test_run( |
| 878 | cap_out, |
| 879 | store, |
| 880 | path, |
| 881 | {'hook_stage': 'post-checkout'}, |
| 882 | expected_outputs=[b'identity...'], |
| 883 | expected_ret=0, |
| 884 | stage=False, |
| 885 | ) |
| 886 | |
| 887 | |
| 888 | def test_prepare_commit_msg_hook(cap_out, store, prepare_commit_msg_repo): |
nothing calls this directly
no test coverage detected