Small fixes to LMS unit 1 failures in Django 1.11 tests
This commit is contained in:
@@ -173,7 +173,7 @@ class TestLTIModuleListing(SharedModuleStoreTestCase):
|
||||
def expected_handler_url(self, handler):
|
||||
"""convenience method to get the reversed handler urls"""
|
||||
return "https://{}{}".format(settings.SITE_NAME, reverse(
|
||||
'courseware.module_render.handle_xblock_callback_noauth',
|
||||
'xblock_handler_noauth',
|
||||
args=[
|
||||
self.course.id.to_deprecated_string(),
|
||||
quote_slashes(unicode(self.lti_published.scope_ids.usage_id.to_deprecated_string()).encode('utf-8')),
|
||||
|
||||
@@ -248,6 +248,7 @@ class ModuleRenderTestCase(SharedModuleStoreTestCase, LoginEnrollmentTestCase):
|
||||
)
|
||||
|
||||
# Verify that handle ajax is called with the correct data
|
||||
request.POST._mutable = True
|
||||
request.POST['queuekey'] = fake_key
|
||||
self.mock_module.handle_ajax.assert_called_once_with(self.dispatch, request.POST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user