Skip to content
Snippets Groups Projects
Commit a57d1fd7 authored by Awais Qureshi's avatar Awais Qureshi
Browse files

BOM-133

python3 tests failures.
parent e2743977
No related merge requests found
......@@ -372,6 +372,9 @@ class ItemFactory(XModuleFactory):
# This code was based off that in cms/djangoapps/contentstore/views.py
parent = kwargs.pop('parent', None) or store.get_item(parent_location)
if isinstance(data, (bytes, bytearray)): # data appears as bytes and
data = data.decode('utf-8')
with store.branch_setting(ModuleStoreEnum.Branch.draft_preferred):
if 'boilerplate' in kwargs:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment