Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8880faed
Commit
8880faed
authored
11 years ago
by
Will Daly
Browse files
Options
Downloads
Plain Diff
Merge pull request #2558 from edx/will/more-robust-ora-page
Ora page object retries even if rubric doesn't load
parents
d0a1701b
4a9202bd
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/test/acceptance/tests/test_ora.py
+9
-2
9 additions, 2 deletions
common/test/acceptance/tests/test_ora.py
with
9 additions
and
2 deletions
common/test/acceptance/tests/test_ora.py
+
9
−
2
View file @
8880faed
...
...
@@ -149,10 +149,17 @@ class OpenResponseTest(UniqueCourseTest):
def
_inner_check
():
self
.
course_nav
.
go_to_sequential
(
'
Self-Assessed
'
)
self
.
course_nav
.
go_to_sequential
(
section_name
)
feedback
=
self
.
open_response
.
rubric
.
feedback
try
:
feedback
=
self
.
open_response
.
rubric
.
feedback
# Unsuccessful if the rubric hasn't loaded
except
BrokenPromise
:
return
(
False
,
None
)
# Successful if `feedback` is a non-empty list
return
(
bool
(
feedback
),
feedback
)
else
:
return
(
bool
(
feedback
),
feedback
)
return
_inner_check
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment