This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git
The following commit(s) were added to refs/heads/master by this push:
new 77c59e356 test speedup: always use lxml (if html5lib is selected, some
tests fail)
77c59e356 is described below
commit 77c59e3561dfd75d75b42ac4ed0500da1edb32bb
Author: Dave Brondsema <[email protected]>
AuthorDate: Tue Oct 29 13:31:55 2024 -0400
test speedup: always use lxml (if html5lib is selected, some tests fail)
---
AlluraTest/alluratest/controller.py | 2 +-
requirements-dev.txt | 1 -
requirements.in | 2 ++
requirements.txt | 2 ++
4 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/AlluraTest/alluratest/controller.py
b/AlluraTest/alluratest/controller.py
index 040677cb7..1c4cf32b6 100644
--- a/AlluraTest/alluratest/controller.py
+++ b/AlluraTest/alluratest/controller.py
@@ -178,7 +178,7 @@ class TestController:
pkg = self.__module__.split('.')[0]
self.app = ValidatingTestApp( # inherits from webtest.TestApp
ultimately
setup_functional_test(app_name=self.application_under_test,
current_pkg=pkg),
- parser_features=BeautifulSoup.DEFAULT_BUILDER_FEATURES, # fastest
parser (WebTest defaults to html.parser)
+ parser_features='lxml', # fastest parser (WebTest defaults to
html.parser)
)
self.app.extra_environ = {'REMOTE_ADDR': '127.0.0.1'} # remote_addr
needed by AntiSpam
if self.validate_skip:
diff --git a/requirements-dev.txt b/requirements-dev.txt
index 4e4a7bfab..ec1568631 100644
--- a/requirements-dev.txt
+++ b/requirements-dev.txt
@@ -1,7 +1,6 @@
# development-only dependencies
# nothing needed at runtime or for tests
-lxml # faster resp.html parsing in tests
pip-tools
q
sphinx-argparse
diff --git a/requirements.in b/requirements.in
index 6fb6277ad..a4407483d 100644
--- a/requirements.in
+++ b/requirements.in
@@ -14,6 +14,8 @@ FormEncode
GitPython
html5lib
Jinja2
+# for faster resp.html parsing in tests
+lxml
Markdown
markdown-checklist
MarkupSafe
diff --git a/requirements.txt b/requirements.txt
index 568db932c..0632831ab 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -128,6 +128,8 @@ jmespath==1.0.1
# botocore
joserfc==0.9.0
# via beaker-session-jwt
+lxml==5.3.0
+ # via -r requirements.in
markdown==3.6
# via
# -r requirements.in