Merge pull request #21637 from edx/BOM-446

BOM-446
This commit is contained in:
Aarif
2019-09-13 14:40:36 +05:00
committed by GitHub
6 changed files with 6 additions and 6 deletions

View File

@@ -1225,7 +1225,7 @@ def hash_resource(resource):
"""
md5 = hashlib.md5()
for data in resource:
md5.update(repr(data))
md5.update(repr(data).encode('utf-8'))
return md5.hexdigest()

View File

@@ -1402,7 +1402,7 @@ class TestProctoringRendering(SharedModuleStoreTestCase):
)
if attempt_status:
create_exam_attempt(exam_id, self.request.user.id, taking_as_proctored=True)
create_exam_attempt(six.text_type(exam_id).encode('utf-8'), self.request.user.id, taking_as_proctored=True)
update_attempt_status(exam_id, self.request.user.id, attempt_status)
return usage_key