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
645839b8
Commit
645839b8
authored
Apr 22, 2016
by
Christine Lytwynec
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix default args for paver pa11ycrawler
parent
bded4800
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
pavelib/bok_choy.py
+2
-2
pavelib/utils/test/suites/bokchoy_suite.py
+2
-2
No files found.
pavelib/bok_choy.py
View file @
645839b8
...
...
@@ -152,8 +152,8 @@ def pa11ycrawler(options):
opts
=
parse_bokchoy_opts
(
options
)
opts
[
'report_dir'
]
=
Env
.
PA11YCRAWLER_REPORT_DIR
opts
[
'coveragerc'
]
=
Env
.
PA11YCRAWLER_COVERAGERC
opts
[
'should_fetch_course'
]
=
getattr
(
options
,
'should_fetch_course'
,
None
)
opts
[
'course_key'
]
=
getattr
(
options
,
'course-key'
,
None
)
opts
[
'should_fetch_course'
]
=
getattr
(
options
,
'should_fetch_course'
,
not
opts
[
'fasttest'
]
)
opts
[
'course_key'
]
=
getattr
(
options
,
'course-key'
,
"course-v1:edX+Test101+course"
)
test_suite
=
Pa11yCrawler
(
'a11y_crawler'
,
**
opts
)
test_suite
.
run
()
...
...
pavelib/utils/test/suites/bokchoy_suite.py
View file @
645839b8
...
...
@@ -268,7 +268,7 @@ class Pa11yCrawler(BokChoyTestSuite):
def
__init__
(
self
,
*
args
,
**
kwargs
):
super
(
Pa11yCrawler
,
self
)
.
__init__
(
*
args
,
**
kwargs
)
self
.
course_key
=
kwargs
.
get
(
'course_key'
,
"course-v1:edX+Test101+course"
)
self
.
course_key
=
kwargs
.
get
(
'course_key'
)
if
self
.
imports_dir
:
# If imports_dir has been specified, assume the files are
# already there -- no need to fetch them from github. This
...
...
@@ -279,7 +279,7 @@ class Pa11yCrawler(BokChoyTestSuite):
# Otherwise, obey `--skip-fetch` command and use the default
# test course. Note that the fetch will also be skipped when
# using `--fast`.
self
.
should_fetch_course
=
kwargs
.
get
(
'should_fetch_course'
,
not
self
.
fasttest
)
self
.
should_fetch_course
=
kwargs
.
get
(
'should_fetch_course'
)
self
.
imports_dir
=
path
(
'test_root/courses/'
)
self
.
pa11y_report_dir
=
os
.
path
.
join
(
self
.
report_dir
,
'pa11ycrawler_reports'
)
...
...
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