Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-ora2
Commits
1f739205
Commit
1f739205
authored
Jun 13, 2016
by
ssemenova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ORA display name set by default
TNL-4687
parent
87c722aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
openassessment/templates/openassessmentblock/oa_base.html
+1
-1
openassessment/xblock/openassessmentblock.py
+1
-1
openassessment/xblock/test/test_studio.py
+5
-0
No files found.
openassessment/templates/openassessmentblock/oa_base.html
View file @
1f739205
...
@@ -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 %}
...
...
openassessment/xblock/openassessmentblock.py
View file @
1f739205
...
@@ -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)."
)
)
...
...
openassessment/xblock/test/test_studio.py
View file @
1f739205
...
@@ -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'
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment