Remove more unused pa11ycrawler code (#20690)
This commit is contained in:
@@ -5,14 +5,8 @@ Run just this test with: paver test_lib -t pavelib/paver_tests/test_paver_bok_ch
|
||||
import os
|
||||
import unittest
|
||||
from test.test_support import EnvironmentVarGuard
|
||||
from textwrap import dedent
|
||||
|
||||
import ddt
|
||||
from mock import Mock, call, patch
|
||||
from paver.easy import call_task, environment
|
||||
|
||||
from pavelib.utils.test.suites import BokChoyTestSuite
|
||||
from pavelib.utils.test.suites.bokchoy_suite import DEMO_COURSE_IMPORT_DIR, DEMO_COURSE_TAR_GZ
|
||||
|
||||
REPO_DIR = os.getcwd()
|
||||
|
||||
|
||||
@@ -5,11 +5,9 @@ Class used for defining and running Bok Choy acceptance test suite
|
||||
from __future__ import print_function
|
||||
import os
|
||||
from time import sleep
|
||||
from textwrap import dedent
|
||||
|
||||
from common.test.acceptance.fixtures.course import CourseFixture, FixtureError
|
||||
|
||||
from path import Path as path
|
||||
from paver.easy import sh, cmdopts, task, needs, might_call, call_task, dry
|
||||
from pavelib.utils.test.suites.suite import TestSuite
|
||||
from pavelib.utils.envs import Env
|
||||
@@ -35,9 +33,6 @@ __test__ = False # do not collect
|
||||
DEFAULT_NUM_PROCESSES = 1
|
||||
DEFAULT_VERBOSITY = 2
|
||||
|
||||
DEMO_COURSE_TAR_GZ = "https://github.com/edx/demo-test-course/archive/master.tar.gz"
|
||||
DEMO_COURSE_IMPORT_DIR = path('test_root/courses/')
|
||||
|
||||
|
||||
@task
|
||||
@cmdopts([BOKCHOY_DEFAULT_STORE, BOKCHOY_DEFAULT_STORE_DEPR])
|
||||
|
||||
@@ -2,6 +2,6 @@
|
||||
set -e
|
||||
|
||||
export LOWER_PYLINT_THRESHOLD=1000
|
||||
export UPPER_PYLINT_THRESHOLD=2200
|
||||
export UPPER_PYLINT_THRESHOLD=2100
|
||||
export ESLINT_THRESHOLD=5530
|
||||
export STYLELINT_THRESHOLD=880
|
||||
|
||||
@@ -29,14 +29,14 @@ def main(log_file, test_suite):
|
||||
worker_test_dict = {}
|
||||
with io.open(log_file, 'r') as console_file:
|
||||
for line in console_file:
|
||||
regex_search = re.search(r'\[{}] \[gw(\d+)] (PASSED|FAILED|SKIPPED|ERROR)'.format(test_suite), line)
|
||||
regex_search = re.search(r'\[gw(\d+)] (PASSED|FAILED|SKIPPED|ERROR)'.format(test_suite), line)
|
||||
if regex_search:
|
||||
worker_num_string = regex_search.group(1)
|
||||
if worker_num_string not in worker_test_dict:
|
||||
worker_test_dict[worker_num_string] = []
|
||||
test = line.split()[3]
|
||||
test = line.split()[2]
|
||||
if test_suite == "commonlib-unit":
|
||||
if "pavelib" not in test:
|
||||
if "pavelib" not in test and not test.startswith('scripts'):
|
||||
test = u"common/lib/{}".format(test)
|
||||
worker_test_dict[worker_num_string].append(test)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user