Commit 7f60fa5e by David Baumgold

Make data-dir explicit for pa11ycrawler

parent 18500472
......@@ -209,6 +209,8 @@ class TestPaverPa11yCrawlerCmd(unittest.TestCase):
"port=8003",
"-a",
"course_key=course-v1:edX+Test101+course",
"-a",
"data_dir=/edx/app/edxapp/edx-platform/reports/pa11ycrawler/data",
]
self.assertEqual(suite.cmd, expected_cmd)
......
......@@ -394,6 +394,7 @@ class Pa11yCrawler(BokChoyTestSuite):
"""
Runs pa11ycrawler as staff user against the test course.
"""
data_dir = os.path.join(self.report_dir, 'data')
return [
"scrapy",
"crawl",
......@@ -402,4 +403,6 @@ class Pa11yCrawler(BokChoyTestSuite):
"port=8003",
"-a",
"course_key={key}".format(key=self.course_key),
"-a",
"data_dir={dir}".format(dir=data_dir)
]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment