Commit 5a6e587a by Alexander Kryklia

added case for mocking

parent 1cc23e3a
......@@ -869,7 +869,12 @@ class DragAndDropInput(InputTypeBase):
self.loaded_attributes['drag_and_drop_json'] = json.dumps(to_js)
self.to_render.add('drag_and_drop_json')
self.loaded_attributes['course_folder'] = self.system.course_id.split('/')[1]
# import ipdb; ipdb.set_trace()
try: # for tests and mock up, work normally not in tets
self.loaded_attributes['course_folder'] = \
self.system.course_id.split('/')[1]
except:
self.loaded_attributes['course_folder'] = 'mock'
self.to_render.add('course_folder')
registry.register(DragAndDropInput)
......
Markdown is supported
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