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

Function test_answer_unicode

tests/test_cz_customize.py:585–605  ·  view source on GitHub ↗
(config_with_unicode)

Source from the content-addressed store, hash-verified

583
584
585def test_answer_unicode(config_with_unicode):
586 cz = CustomizeCommitsCz(config_with_unicode)
587 answers = {
588 "change_type": "✨ feature",
589 "message": "this feature enables customization through a config file",
590 "show_message": True,
591 }
592 message = cz.message(answers)
593 assert (
594 message
595 == "✨ feature: this feature enables customization through a config file"
596 )
597
598 cz = CustomizeCommitsCz(config_with_unicode)
599 answers = {
600 "change_type": "✨ feature",
601 "message": "this feature enables customization through a config file",
602 "show_message": False,
603 }
604 message = cz.message(answers)
605 assert message == "✨ feature:"
606
607
608def test_example(config):

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95
CustomizeCommitsCzClass · 0.90

Tested by

no test coverage detected