def test_run_all_questions_with_real_answer_all_wrong(self, _get_input_mock): # WHEN expected = self.real_list_of_remaining_questions actual = run_all_questions(self.real_list_of_remaining_questions) # THEN self.assertEqual(expected, actual)
def run(tasks, blurb): print(blurb) word_num = len(blurb) fraction_of_second_to_read_each_word = 0.025 sleep_len = word_num * fraction_of_second_to_read_each_word sleep(sleep_len) list_of_remaining_questions = run_all_questions( create_question_list(enumerate_task_list(tasks))) while list_of_remaining_questions: print( f"You got {len(tasks) - len(list_of_remaining_questions)}/{len(tasks)} questions right\n" ) if not _user_wants_to_retry_quiz(): print("\nGame Over\n\n") exit() else: list_of_remaining_questions = run_all_questions( list_of_remaining_questions) print(f"You got {len(tasks)}/{len(tasks)} questions right\n") _bonus()
def test_run_all_questions(self, _get_input_mock): # GIVEN run_all_questions(self.list_of_remaining_questions) # THEN _get_input_mock.assert_called_with()