Commit aaa0eb34 by muzaffaryousaf

Fixing the failing test removing the runtime line.

TNL-900
parent 4a4e97ea
......@@ -520,9 +520,6 @@ class TestCourseStaff(XBlockHandlerTestCase):
def test_cancel_submission_without_reason(self, xblock):
# If we're not course staff, we shouldn't be able to see the
# cancel submission option
xblock.xmodule_runtime = self._create_mock_runtime(
xblock.scope_ids.usage_id, False, False, "Bob"
)
resp = self.request(xblock, 'cancel_submission', json.dumps({}))
self.assertIn("you do not have permission", resp.decode('utf-8').lower())
......
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