def setUp(self): self.groups = [] self.ids = [] challenges = get_word_challenges(fakes.word1, fakes.course1) for challenge in challenges: self.groups.append(challenge["group"]) self.ids.append(challenge["id"]) assert len(self.groups) > 1 assert len(self.ids) > 1
def test_includes_listening_challenge(self, mock): fake_value = fakes.fake_value() mock.return_value = fake_value assert get_word_challenges(fakes.word1, fakes.course1)[2] == fake_value
def test_includes_short_input_challenges(self, mock): fake_value = fakes.fake_value() mock.return_value = fake_value assert get_word_challenges(fakes.word1, fakes.course1)[1] == fake_value