Commit 2f5f7680 by stv

Fix failing forked test

parent 06ff3858
......@@ -303,8 +303,12 @@ class ChoiceGroupTemplateTest(TemplateTestCase):
self.context)
# Expect to see the message
self.assert_has_text(xml, "//div[@class='capa_alert']",
self.context['submitted_message'])
if self.context['value']:
self.assert_has_text(
xml,
"//div[@class='capa_alert']",
self.context['submitted_message'],
)
def test_no_message_before_submission(self):
"""
......
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