Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
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
2983b3da
Commit
2983b3da
authored
8 years ago
by
Calen Pennington
Browse files
Options
Downloads
Patches
Plain Diff
Correctly pass bok-choy specific options through to the BokChoyTestSuite
parent
ea28eb61
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pavelib/bok_choy.py
+14
-14
14 additions, 14 deletions
pavelib/bok_choy.py
with
14 additions
and
14 deletions
pavelib/bok_choy.py
+
14
−
14
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
(
**
opts
):
def
run_bokchoy
(
opt
ions
,
passthrough_option
s
):
"""
Runs BokChoyTestSuite with the given options.
"""
test_suite
=
BokChoyTestSuite
(
'
bok-choy
'
,
**
opts
)
test_suite
=
BokChoyTestSuite
(
'
bok-choy
'
,
passthrough_options
=
passthrough_options
,
**
opt
ion
s
)
msg
=
colorize
(
'
green
'
,
'
Running tests using {default_store} modulestore.
'
.
format
(
...
...
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