Skip to content

Commit

Permalink
Fix broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
Janis Lesinskis committed Oct 3, 2017
1 parent 68ef676 commit 93e1d42
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions quiz_generator/tests/test_quiz.py
Expand Up @@ -25,9 +25,9 @@ def test_quiz_creation():
question_1_text = "Content of question1"
question_2_text = "Content of question2"
question1 = Mock()
question1.question_to_latex = question_1_text
question1.render_question = Mock(return_value=question_1_text)
question2 = Mock()
question2.question_to_latex = question_2_text
question2.render_question = Mock(return_value=question_2_text)

name = "Mock quiz"
test_quiz = Quiz(
Expand All @@ -44,9 +44,9 @@ def test_marking_sheet():
answer_to_q_1 = "Answer to question1"
answer_to_q_2 = "Answer to question2"
question1 = Mock()
question1.answer_to_latex = answer_to_q_1
question1.render_answer = Mock(return_value=answer_to_q_1)
question2 = Mock()
question2.answer_to_latex = answer_to_q_2
question2.render_answer = Mock(return_value=answer_to_q_2)

name = "Mock quiz"
test_quiz = Quiz(
Expand Down

0 comments on commit 93e1d42

Please sign in to comment.