Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
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-platform
Commits
2983b3da
Commit
2983b3da
authored
Jul 26, 2016
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correctly pass bok-choy specific options through to the BokChoyTestSuite
parent
ea28eb61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
pavelib/bok_choy.py
+14
-14
No files found.
pavelib/bok_choy.py
View file @
2983b3da
...
...
@@ -47,7 +47,7 @@ def test_bokchoy(options, passthrough_options):
if
validate_firefox
:
check_firefox_version
()
run_bokchoy
(
passthrough_options
=
passthrough_options
,
**
options
)
run_bokchoy
(
options
.
test_bokchoy
,
passthrough_
options
)
@needs
(
'pavelib.prereqs.install_prereqs'
)
...
...
@@ -72,10 +72,10 @@ def test_a11y(options, passthrough_options):
"""
# Modify the options object directly, so that any subsequently called tasks
# that share with this task get the modified options
options
[
'test_a11y'
][
'report_dir'
]
=
Env
.
BOK_CHOY_A11Y_REPORT_DIR
options
[
'test_a11y'
][
'coveragerc'
]
=
Env
.
BOK_CHOY_A11Y_COVERAGERC
options
[
'test_a11y'
][
'extra_args'
]
=
options
.
get
(
'extra_args'
,
''
)
+
' -a "a11y" '
run_bokchoy
(
passthrough_options
=
passthrough_options
,
**
options
[
'test_a11y'
]
)
options
.
test_a11y
.
report_dir
=
Env
.
BOK_CHOY_A11Y_REPORT_DIR
options
.
test_a11y
.
coveragerc
=
Env
.
BOK_CHOY_A11Y_COVERAGERC
options
.
test_a11y
.
extra_args
=
options
.
get
(
'extra_args'
,
''
)
+
' -a "a11y" '
run_bokchoy
(
options
.
test_a11y
,
passthrough_options
)
@needs
(
'pavelib.prereqs.install_prereqs'
)
...
...
@@ -88,9 +88,9 @@ def perf_report_bokchoy(options, passthrough_options):
"""
# Modify the options object directly, so that any subsequently called tasks
# that share with this task get the modified options
options
[
'perf_report_bokchoy'
][
'test_dir'
]
=
'performance'
options
.
perf_report_bokchoy
.
test_dir
=
'performance'
run_bokchoy
(
passthrough_options
=
passthrough_options
,
**
options
[
'perf_report_bokchoy'
]
)
run_bokchoy
(
options
.
perf_report_bokchoy
,
passthrough_options
)
@needs
(
'pavelib.prereqs.install_prereqs'
)
...
...
@@ -117,26 +117,26 @@ def pa11ycrawler(options, passthrough_options):
"""
# Modify the options object directly, so that any subsequently called tasks
# that share with this task get the modified options
options
[
'pa11ycrawler'
][
'report_dir'
]
=
Env
.
PA11YCRAWLER_REPORT_DIR
options
[
'pa11ycrawler'
][
'coveragerc'
]
=
Env
.
PA11YCRAWLER_COVERAGERC
options
[
'pa11ycrawler'
][
'should_fetch_course'
]
=
getattr
(
options
.
pa11ycrawler
.
report_dir
=
Env
.
PA11YCRAWLER_REPORT_DIR
options
.
pa11ycrawler
.
coveragerc
=
Env
.
PA11YCRAWLER_COVERAGERC
options
.
pa11ycrawler
.
should_fetch_course
=
getattr
(
options
,
'should_fetch_course'
,
not
options
.
get
(
'fasttest'
)
)
options
[
'pa11ycrawler'
][
'course_key'
]
=
getattr
(
options
,
'course-key'
,
"course-v1:edX+Test101+course"
)
test_suite
=
Pa11yCrawler
(
'a11y_crawler'
,
passthrough_options
=
passthrough_options
,
**
options
[
'pa11ycrawler'
]
)
options
.
pa11ycrawler
.
course_key
=
getattr
(
options
,
'course-key'
,
"course-v1:edX+Test101+course"
)
test_suite
=
Pa11yCrawler
(
'a11y_crawler'
,
passthrough_options
=
passthrough_options
,
**
options
.
pa11ycrawler
)
test_suite
.
run
()
if
getattr
(
options
,
'with_html'
,
False
):
test_suite
.
generate_html_reports
()
def
run_bokchoy
(
**
opt
s
):
def
run_bokchoy
(
options
,
passthrough_option
s
):
"""
Runs BokChoyTestSuite with the given options.
"""
test_suite
=
BokChoyTestSuite
(
'bok-choy'
,
**
opt
s
)
test_suite
=
BokChoyTestSuite
(
'bok-choy'
,
passthrough_options
=
passthrough_options
,
**
option
s
)
msg
=
colorize
(
'green'
,
'Running tests using {default_store} modulestore.'
.
format
(
...
...
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