Commit 69f72989 by ichuang

consistently use inline=False as default in capa inputtypes

parent d7fdcd90
...@@ -325,7 +325,7 @@ class OptionInput(InputTypeBase): ...@@ -325,7 +325,7 @@ class OptionInput(InputTypeBase):
Convert options to a convenient format. Convert options to a convenient format.
""" """
return [Attribute('options', transform=cls.parse_options), return [Attribute('options', transform=cls.parse_options),
Attribute('inline', '')] Attribute('inline', False)]
registry.register(OptionInput) registry.register(OptionInput)
......
...@@ -55,7 +55,7 @@ class OptionInputTest(unittest.TestCase): ...@@ -55,7 +55,7 @@ class OptionInputTest(unittest.TestCase):
'options': [('Up', 'Up'), ('Down', 'Down')], 'options': [('Up', 'Up'), ('Down', 'Down')],
'status': 'answered', 'status': 'answered',
'msg': '', 'msg': '',
'inline': '', 'inline': False,
'id': 'sky_input'} 'id': 'sky_input'}
self.assertEqual(context, expected) self.assertEqual(context, expected)
......
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