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
1ecd2c91
Commit
1ecd2c91
authored
Sep 19, 2014
by
dragonfi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bugs that prevent tests from running on gsehub
parent
5aa62061
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
mentoring/mentoring.py
+1
-1
mentoring/test_base.py
+1
-2
No files found.
mentoring/mentoring.py
View file @
1ecd2c91
...
@@ -69,7 +69,7 @@ class MentoringBlock(XBlockWithLightChildren, StepParentMixin):
...
@@ -69,7 +69,7 @@ class MentoringBlock(XBlockWithLightChildren, StepParentMixin):
url_name
=
String
(
help
=
"Name of the current step, used for URL building"
,
url_name
=
String
(
help
=
"Name of the current step, used for URL building"
,
default
=
'mentoring-default'
,
scope
=
Scope
.
content
)
default
=
'mentoring-default'
,
scope
=
Scope
.
content
)
enforce_dependency
=
Boolean
(
help
=
"Should the next step be the current block to complete?"
,
enforce_dependency
=
Boolean
(
help
=
"Should the next step be the current block to complete?"
,
default
=
False
,
scope
=
Scope
.
content
)
default
=
False
,
scope
=
Scope
.
content
,
enforce_type
=
True
)
display_submit
=
Boolean
(
help
=
"Allow to submit current block?"
,
default
=
True
,
scope
=
Scope
.
content
)
display_submit
=
Boolean
(
help
=
"Allow to submit current block?"
,
default
=
True
,
scope
=
Scope
.
content
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
xml_content
=
String
(
help
=
"XML content"
,
default
=
''
,
scope
=
Scope
.
content
)
weight
=
Float
(
help
=
"Defines the maximum total grade of the block."
,
weight
=
Float
(
help
=
"Defines the maximum total grade of the block."
,
...
...
mentoring/test_base.py
View file @
1ecd2c91
...
@@ -30,7 +30,6 @@ from workbench.test.selenium_test import SeleniumTest
...
@@ -30,7 +30,6 @@ from workbench.test.selenium_test import SeleniumTest
from
.utils
import
load_scenarios_from_path
from
.utils
import
load_scenarios_from_path
# Classes ###########################################################
# Classes ###########################################################
class
MentoringBaseTest
(
SeleniumTest
):
class
MentoringBaseTest
(
SeleniumTest
):
...
@@ -41,7 +40,7 @@ class MentoringBaseTest(SeleniumTest):
...
@@ -41,7 +40,7 @@ class MentoringBaseTest(SeleniumTest):
# Use test scenarios
# Use test scenarios
self
.
browser
.
get
(
self
.
live_server_url
)
# Needed to load tests once
self
.
browser
.
get
(
self
.
live_server_url
)
# Needed to load tests once
scenarios
.
SCENARIOS
.
clear
()
scenarios
.
SCENARIOS
.
clear
()
scenarios_list
=
load_scenarios_from_path
(
'../tests/xml'
)
scenarios_list
=
load_scenarios_from_path
(
'../tests/
integration/
xml'
)
for
identifier
,
title
,
xml
in
scenarios_list
:
for
identifier
,
title
,
xml
in
scenarios_list
:
scenarios
.
add_xml_scenario
(
identifier
,
title
,
xml
)
scenarios
.
add_xml_scenario
(
identifier
,
title
,
xml
)
self
.
addCleanup
(
scenarios
.
remove_scenario
,
identifier
)
self
.
addCleanup
(
scenarios
.
remove_scenario
,
identifier
)
...
...
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