Skip to content

Commit

Permalink
add text to mocked request
Browse files Browse the repository at this point in the history
  • Loading branch information
Sumukh committed Nov 19, 2015
1 parent 1f3851e commit 035de15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/tests/integration/test_api_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def test_autograde_rejected_request(self):
""" Tests report for autograding failure """
with self.assertRaises(BadValueError):
import requests
self.mock(requests, 'post').using(lambda *args, **kwargs: self.obj().set(status_code=900))
self.mock(requests, 'post').using(lambda *args, **kwargs: self.obj().set(status_code=500, text="Not allowed"))
# Use the deferred task - since that's where submission occurs.
utils.autograde_final_subs(self._assign, self.accounts['dummy_admin'], {
'grade_final': True,
Expand Down

0 comments on commit 035de15

Please sign in to comment.