(config_with_unicode)
| 583 | |
| 584 | |
| 585 | def 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 | |
| 608 | def test_example(config): |
nothing calls this directly
no test coverage detected