Skip to content
Snippets Groups Projects
Unverified Commit 9c0bd39e authored by Feanil Patel's avatar Feanil Patel Committed by GitHub
Browse files

Merge pull request #21671 from edx/feanil/more_bokchoy_fixes

Feanil/more bokchoy fixes
parents a4f03620 fb59752c
Branches
Tags
No related merge requests found
......@@ -102,7 +102,7 @@ class ResponseXMLFactory(six.with_metaclass(ABCMeta, object)):
explanation_div.set("class", "detailed-solution")
explanation_div.text = explanation_text
return etree.tostring(root)
return etree.tostring(root).decode('utf-8')
@staticmethod
def textline_input_xml(**kwargs):
......
......@@ -166,10 +166,7 @@ class XBlockContainerFixture(StudioApiFixture):
"""
Encode `post_dict` (a dictionary) as UTF-8 encoded JSON.
"""
return json.dumps({
k: v.encode('utf-8') if isinstance(v, six.string_types) else v
for k, v in post_dict.items()
})
return json.dumps(post_dict).encode('utf-8')
def get_nested_xblocks(self, category=None):
"""
......
......@@ -189,7 +189,7 @@ def generate_password(length=12, chars=string.ascii_letters + string.digits):
password = ''
password += choice(string.digits)
password += choice(string.letters)
password += choice(string.ascii_letters)
password += ''.join([choice(chars) for _i in range(length - 2)])
return password
......
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