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

Function test_questions_unicode

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

Source from the content-addressed store, hash-verified

540
541
542def test_questions_unicode(config_with_unicode):
543 cz = CustomizeCommitsCz(config_with_unicode)
544 questions = cz.questions()
545 expected_questions = [
546 {
547 "type": "list",
548 "name": "change_type",
549 "choices": [
550 {"value": "✨ feature", "name": "✨ feature: A new feature."},
551 {"value": "🐛 bug fix", "name": "🐛 bug fix: A bug fix."},
552 ],
553 "message": "Select the type of change you are committing",
554 },
555 {"type": "input", "name": "message", "message": "Body."},
556 {
557 "type": "confirm",
558 "name": "show_message",
559 "message": "Do you want to add body message in commit?",
560 },
561 ]
562 assert list(questions) == expected_questions
563
564
565def test_answer(config):

Callers

nothing calls this directly

Calls 2

questionsMethod · 0.95
CustomizeCommitsCzClass · 0.90

Tested by

no test coverage detected