Asks a set of questions and stores the answers in a dict. :param questions: The list of questions to ask. :return: A dict of answers.
(questions)
| 29 | |
| 30 | @staticmethod |
| 31 | def ask_questions(questions): |
| 32 | """ |
| 33 | Asks a set of questions and stores the answers in a dict. |
| 34 | |
| 35 | :param questions: The list of questions to ask. |
| 36 | :return: A dict of answers. |
| 37 | """ |
| 38 | answers = {} |
| 39 | for question in questions: |
| 40 | answers[question.key] = Question.ask_question( |
| 41 | question.question, *question.validators |
| 42 | ) |
| 43 | return answers |
| 44 | |
| 45 | @staticmethod |
| 46 | def ask_question(question, *validators): |
nothing calls this directly
no test coverage detected