(config_with_unicode)
| 540 | |
| 541 | |
| 542 | def 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 | |
| 565 | def test_answer(config): |
nothing calls this directly
no test coverage detected