From 32e7836bd9c35ef48e5ba6db078946faedb53456 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 7 Sep 2016 13:00:18 -0400 Subject: [PATCH] Add pa11y_ignore_rules_url to `paver pa11ycrawler` --- pavelib/paver_tests/test_paver_bok_choy_cmds.py | 7 +++++++ pavelib/utils/test/suites/bokchoy_suite.py | 3 +++ 2 files changed, 10 insertions(+) diff --git a/pavelib/paver_tests/test_paver_bok_choy_cmds.py b/pavelib/paver_tests/test_paver_bok_choy_cmds.py index cca28d4802..c279f811c5 100644 --- a/pavelib/paver_tests/test_paver_bok_choy_cmds.py +++ b/pavelib/paver_tests/test_paver_bok_choy_cmds.py @@ -201,6 +201,11 @@ class TestPaverPa11yCrawlerCmd(unittest.TestCase): suite = Pa11yCrawler( 'pa11ycrawler', course_key="course-v1:edX+Test101+course", ) + ignore = ( + "pa11y_ignore_rules_url=" + "https://raw.githubusercontent.com/singingwolfboy/" + "pa11ycrawler-ignore/master/ignore.yaml" + ) expected_cmd = [ "scrapy", "crawl", @@ -210,6 +215,8 @@ class TestPaverPa11yCrawlerCmd(unittest.TestCase): "-a", "course_key=course-v1:edX+Test101+course", "-a", + ignore, + "-a", "data_dir=/edx/app/edxapp/edx-platform/reports/pa11ycrawler/data", ] actual_cmd = suite.cmd diff --git a/pavelib/utils/test/suites/bokchoy_suite.py b/pavelib/utils/test/suites/bokchoy_suite.py index f4030f756f..06101dc1c2 100644 --- a/pavelib/utils/test/suites/bokchoy_suite.py +++ b/pavelib/utils/test/suites/bokchoy_suite.py @@ -395,6 +395,7 @@ class Pa11yCrawler(BokChoyTestSuite): Runs pa11ycrawler as staff user against the test course. """ data_dir = os.path.join(self.report_dir, 'data') + url = "https://raw.githubusercontent.com/singingwolfboy/pa11ycrawler-ignore/master/ignore.yaml" return [ "scrapy", "crawl", @@ -404,5 +405,7 @@ class Pa11yCrawler(BokChoyTestSuite): "-a", "course_key={key}".format(key=self.course_key), "-a", + "pa11y_ignore_rules_url={url}".format(url=url), + "-a", "data_dir={dir}".format(dir=data_dir) ]