Commit 1f739205 by ssemenova

ORA display name set by default

TNL-4687
parent 87c722aa
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="wrapper wrapper--xblock wrapper--openassessment theme--basic"> <div class="wrapper wrapper--xblock wrapper--openassessment theme--basic">
<div class="openassessment problem" id="openassessment"> <div class="openassessment problem" id="openassessment">
<div class="wrapper--grid"> <div class="wrapper--grid">
<h2 class="openassessment__title problem__header">{{ title }}</h2> <h2 class="openassessment__title problem__header">{% trans title %}</h2>
<div class="wrapper-openassessment__message"> <div class="wrapper-openassessment__message">
{% block message %} {% block message %}
......
...@@ -151,7 +151,7 @@ class OpenAssessmentBlock( ...@@ -151,7 +151,7 @@ class OpenAssessmentBlock(
) )
title = String( title = String(
default="", default="Open Response Assessment",
scope=Scope.content, scope=Scope.content,
help="A title to display to a student (plain text)." help="A title to display to a student (plain text)."
) )
......
...@@ -111,6 +111,11 @@ class StudioViewTest(XBlockHandlerTestCase): ...@@ -111,6 +111,11 @@ class StudioViewTest(XBlockHandlerTestCase):
} }
@scenario('data/basic_scenario.xml') @scenario('data/basic_scenario.xml')
def test_default_fields(self, xblock):
# Default value should not be empty
self.assertEqual(xblock.fields['title'].default, "Open Response Assessment")
@scenario('data/basic_scenario.xml')
def test_render_studio_view(self, xblock): def test_render_studio_view(self, xblock):
frag = self.runtime.render(xblock, 'studio_view') frag = self.runtime.render(xblock, 'studio_view')
self.assertTrue(frag.body_html().find('openassessment-edit')) self.assertTrue(frag.body_html().find('openassessment-edit'))
......
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