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

Function test_answer

tests/test_cz_customize.py:565–582  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

563
564
565def test_answer(config):
566 cz = CustomizeCommitsCz(config)
567 answers = {
568 "change_type": "feature",
569 "message": "this feature enable customize through config file",
570 "show_message": True,
571 }
572 message = cz.message(answers)
573 assert message == "feature: this feature enable customize through config file"
574
575 cz = CustomizeCommitsCz(config)
576 answers = {
577 "change_type": "feature",
578 "message": "this feature enable customize through config file",
579 "show_message": False,
580 }
581 message = cz.message(answers)
582 assert message == "feature:"
583
584
585def test_answer_unicode(config_with_unicode):

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95
CustomizeCommitsCzClass · 0.90

Tested by

no test coverage detected