Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
92d35e49
Commit
92d35e49
authored
Sep 30, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix PR comments
parent
5a5c3c3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
mentoring/light_children.py
+1
-1
mentoring/questionnaire.py
+1
-1
tests/integration/test_assessment.py
+3
-4
No files found.
mentoring/light_children.py
View file @
92d35e49
...
...
@@ -100,7 +100,7 @@ class LightChildrenMixin(XBlockWithChildrenFragmentsMixin):
@classmethod
def
add_node_as_child
(
cls
,
block
,
xml_child
,
child_id
):
if
xml_child
.
tag
is
etree
.
Comment
:
return
return
# Instantiate child
child_class
=
cls
.
get_class_by_element
(
xml_child
.
tag
)
child
=
child_class
(
block
)
...
...
mentoring/questionnaire.py
View file @
92d35e49
...
...
@@ -77,7 +77,7 @@ class QuestionnaireAbstractBlock(LightChild, StepMixin):
name
=
self
.
__class__
.
__name__
if
str
(
self
.
type
)
not
in
self
.
valid_types
:
raise
ValueError
(
'Invalid value for {}.type: `{}`'
.
format
(
name
,
self
.
type
))
raise
ValueError
(
u
'Invalid value for {}.type: `{}`'
.
format
(
name
,
self
.
type
))
template_path
=
'templates/html/{}_{}.html'
.
format
(
name
.
lower
(),
self
.
type
)
html
=
render_js_template
(
template_path
,
{
...
...
tests/integration/test_assessment.py
View file @
92d35e49
...
...
@@ -53,10 +53,9 @@ class MentoringAssessmentTest(MentoringBaseTest):
@property
def
state
(
self
):
state
=
{}
for
choice
in
self
.
_mcq
.
find_elements_by_css_selector
(
".choice"
):
state
[
choice
.
text
]
=
choice
.
find_element_by_css_selector
(
"input"
)
.
is_selected
()
return
state
return
{
choice
.
text
:
choice
.
find_element_by_css_selector
(
"input"
)
.
is_selected
()
for
choice
in
self
.
_mcq
.
find_elements_by_css_selector
(
".choice"
)}
def
select
(
self
,
text
):
state
=
{}
...
...
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