Small fixes to LMS unit 1 failures in Django 1.11 tests

This commit is contained in:
bmedx
2018-01-04 15:14:57 -05:00
parent 792d0db5da
commit 95e76dcafe
5 changed files with 12 additions and 3 deletions

View File

@@ -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')),

View File

@@ -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)