Commit ec4defe5 by Sola Committed by Piotr Mitros

made a simple test case, maybe correctly

parent 4eb63f8e
def test_
def test_rate_hint(self):
'''
This test should test the rate_hint in crowdxblock,
in the event that the rating increases by 1.
'''
resp = self.call_event(
'rate_hint', {
'student_rating': 1,
'value': 'hint',
'answer': 'answer
}
)
self.assertEqual(resp['Success'], True)
self.assertEqual(resp['rating'], 2)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment