Add test case

This commit is contained in:
elagil 2022-03-13 12:54:55 +01:00
parent 8861b85dae
commit c6dee597c5

View file

@ -473,6 +473,22 @@ def test_hook_verbose_enabled(cap_out, store, repo_with_passing_hook):
)
def test_hook_prepend_name_enabled(cap_out, store, repo_with_failing_hook):
with modify_config() as config:
config['repos'][0]['hooks'][0]['always_run'] = True
config['repos'][0]['hooks'][0]['prepend_name'] = True
_test_run(
cap_out,
store,
repo_with_failing_hook,
{},
(b'Failing hook:',),
1,
stage=False,
)
@pytest.mark.parametrize(
('from_ref', 'to_ref'), (('master', ''), ('', 'master')),
)