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
c972cc8d
Commit
c972cc8d
authored
Apr 13, 2015
by
Braden MacDonald
Committed by
Jonathan Piacenti
Apr 14, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix flaky dashboard test
parent
98dd0679
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
problem_builder/questionnaire.py
+5
-5
problem_builder/tests/integration/test_dashboard.py
+1
-0
No files found.
problem_builder/questionnaire.py
View file @
c972cc8d
...
@@ -21,10 +21,10 @@
...
@@ -21,10 +21,10 @@
# Imports ###########################################################
# Imports ###########################################################
from
django.utils.safestring
import
mark_safe
from
django.utils.safestring
import
mark_safe
import
logging
from
lazy
import
lazy
from
lxml
import
etree
import
uuid
from
xblock.core
import
XBlock
from
xblock.core
import
XBlock
from
xblock.fields
import
Scope
,
String
,
Float
,
List
,
UNIQUE_ID
from
xblock.fields
import
Scope
,
String
,
Float
,
UNIQUE_ID
from
xblock.fragment
import
Fragment
from
xblock.fragment
import
Fragment
from
xblock.validation
import
ValidationMessage
from
xblock.validation
import
ValidationMessage
from
xblockutils.helpers
import
child_isinstance
from
xblockutils.helpers
import
child_isinstance
...
@@ -90,14 +90,14 @@ class QuestionnaireAbstractBlock(StudioEditableXBlockMixin, StudioContainerXBloc
...
@@ -90,14 +90,14 @@ class QuestionnaireAbstractBlock(StudioEditableXBlockMixin, StudioContainerXBloc
""" translate text """
""" translate text """
return
self
.
runtime
.
service
(
self
,
"i18n"
)
.
ugettext
(
text
)
return
self
.
runtime
.
service
(
self
,
"i18n"
)
.
ugettext
(
text
)
@
propert
y
@
laz
y
def
html_id
(
self
):
def
html_id
(
self
):
"""
"""
A short, simple ID string used to uniquely identify this question.
A short, simple ID string used to uniquely identify this question.
This is only used by templates for matching <input> and <label> elements.
This is only used by templates for matching <input> and <label> elements.
"""
"""
return
u
nicode
(
id
(
self
))
# Unique as long as all choices are loaded at once
return
u
uid
.
uuid4
()
.
hex
[:
20
]
def
student_view
(
self
,
context
=
None
):
def
student_view
(
self
,
context
=
None
):
name
=
getattr
(
self
,
"unmixed_class"
,
self
.
__class__
)
.
__name__
name
=
getattr
(
self
,
"unmixed_class"
,
self
.
__class__
)
.
__name__
...
...
problem_builder/tests/integration/test_dashboard.py
View file @
c972cc8d
...
@@ -175,6 +175,7 @@ class TestDashboardBlock(SeleniumXBlockTest):
...
@@ -175,6 +175,7 @@ class TestDashboardBlock(SeleniumXBlockTest):
choices
=
mcq
.
find_elements_by_css_selector
(
'.choices .choice label'
)
choices
=
mcq
.
find_elements_by_css_selector
(
'.choices .choice label'
)
choices
[
idx
]
.
click
()
choices
[
idx
]
.
click
()
submit
=
pb
.
find_element_by_css_selector
(
'.submit input.input-main'
)
submit
=
pb
.
find_element_by_css_selector
(
'.submit input.input-main'
)
self
.
assertTrue
(
submit
.
is_enabled
())
submit
.
click
()
submit
.
click
()
self
.
wait_until_disabled
(
submit
)
self
.
wait_until_disabled
(
submit
)
...
...
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