Skip to content

Commit 623f886

Browse files
author
John Backus
committed
update test to use proper 'id' for question sets instead of 'question_set_id'
1 parent de34d0e commit 623f886

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/verifications.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_score_questions(self):
5252
verif_id = verif['id']
5353
qset = self.client.question_set.create(verif_id)
5454
qset = qset.body
55-
qset_id = qset['question_set_id']
55+
qset_id = qset['id']
5656
score = self.client.question_set.score(verif_id, qset_id, [
5757
{'question_id':1, 'answer_id':1},
5858
{'question_id':2, 'answer_id':1},
@@ -61,7 +61,7 @@ def test_score_questions(self):
6161
{'question_id':5, 'answer_id':1}
6262
])
6363
score = score.body
64-
self.assertEqual(score['question_set_id'],qset_id)
64+
self.assertEqual(score['id'],qset_id)
6565
self.assertIsInstance(score['score'],float)
6666

6767

0 commit comments

Comments
 (0)