MCPcopy Create free account
hub / github.com/commitizen-tools/commitizen / test_check_jira_fails

Function test_check_jira_fails

tests/commands/test_check_command.py:71–77  ·  view source on GitHub ↗
(mocker: MockFixture, util: UtilFixture)

Source from the content-addressed store, hash-verified

69
70
71def test_check_jira_fails(mocker: MockFixture, util: UtilFixture):
72 mock_path = mocker.patch("commitizen.commands.check.Path")
73 mock_path.return_value.read_text.return_value = (
74 "random message for J-2 #fake_command blah"
75 )
76 with pytest.raises(InvalidCommitMessageError, match="commit validation: failed!"):
77 util.run_cli("-n", "cz_jira", "check", "--commit-msg-file", "some_file")
78
79
80@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

run_cliMethod · 0.80

Tested by

no test coverage detected