(config)
| 563 | |
| 564 | |
| 565 | def 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 | |
| 585 | def test_answer_unicode(config_with_unicode): |
nothing calls this directly
no test coverage detected