(config)
| 517 | |
| 518 | |
| 519 | def test_questions(config): |
| 520 | cz = CustomizeCommitsCz(config) |
| 521 | questions = cz.questions() |
| 522 | expected_questions = [ |
| 523 | { |
| 524 | "type": "list", |
| 525 | "name": "change_type", |
| 526 | "choices": [ |
| 527 | {"value": "feature", "name": "feature: A new feature."}, |
| 528 | {"value": "bug fix", "name": "bug fix: A bug fix."}, |
| 529 | ], |
| 530 | "message": "Select the type of change you are committing", |
| 531 | }, |
| 532 | {"type": "input", "name": "message", "message": "Body."}, |
| 533 | { |
| 534 | "type": "confirm", |
| 535 | "name": "show_message", |
| 536 | "message": "Do you want to add body message in commit?", |
| 537 | }, |
| 538 | ] |
| 539 | assert list(questions) == expected_questions |
| 540 | |
| 541 | |
| 542 | def test_questions_unicode(config_with_unicode): |
nothing calls this directly
no test coverage detected