Pylons / webtest

Wraps any WSGI application and makes it easy to send test requests to that application, without starting up an HTTP server.
https://docs.pylonsproject.org/projects/webtest/en/latest/
Other
335 stars 109 forks source link

lxml as BeautifulSoup parser #256

Open yhay81 opened 7 months ago

yhay81 commented 7 months ago

Feature Request

I would like to propose the addition of an option to select lxml as the parser for BeautifulSoup responses, instead of the current fixed default of html.parser.

It will improve parsing speed for large or complex documents.

I believe this enhancement would make webtest even more versatile and powerful for a wide range of testing scenarios. I am looking forward to your thoughts on this proposal and am happy to contribute to the discussion or assist with preliminary testing.

Thank you for considering my suggestion and for your ongoing efforts to improve the webtest library.

gawel commented 6 months ago

Hi, sorry for the delay. Feel free to provide a PR. It will be merged if it doesn't change the current behavior and don't break tests :)