Commit a57a093e by Will Daly

Rebased to master

parent 841d3484
...@@ -98,7 +98,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase): ...@@ -98,7 +98,7 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
'input_type': 'checkbox', 'input_type': 'checkbox',
'name_array_suffix': '1', 'name_array_suffix': '1',
'value': '3'} 'value': '3'}
super(TestChoiceGroupTemplate, self).setUp() super(ChoiceGroupTemplateTest, self).setUp()
def test_problem_marked_correct(self): def test_problem_marked_correct(self):
"""Test conditions under which the entire problem """Test conditions under which the entire problem
...@@ -298,16 +298,15 @@ class ChoiceGroupTemplateTest(TemplateTestCase): ...@@ -298,16 +298,15 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
class TextlineTemplateTest(TemplateTestCase): class TextlineTemplateTest(TemplateTestCase):
"""Test mako template for `<textline>` input""" """Test mako template for `<textline>` input"""
# Allow us to pass an extra arg to setUp to configure TEMPLATE_NAME = 'textline.html'
# the test case.
#pylint: disable=W0221
def setUp(self): def setUp(self):
self.context = {'id': '1', self.context = {'id': '1',
'status': 'correct', 'status': 'correct',
'value': '3', 'value': '3',
'preprocessor': None, 'preprocessor': None,
'trailing_text': None} 'trailing_text': None}
super(TextlineTemplateTest, self).setUp('textline.html') super(TextlineTemplateTest, self).setUp()
def test_section_class(self): def test_section_class(self):
cases = [ ({}, ' capa_inputtype '), cases = [ ({}, ' capa_inputtype '),
......
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