def github_source_page(gh_src_app, request) -> BeautifulSoup: gh_src_app.build(force_all=True) pagename = request.param c = (gh_src_app.outdir / pagename).read_text() yield BeautifulSoup(c, "html5lib")
def page(testing_app, request) -> BeautifulSoup: testing_app.build(force_all=True) pagename = request.param c = (testing_app.outdir / pagename).read_text() yield BeautifulSoup(c, "html5lib")
def page(testing_app, request) -> BeautifulSoup: with pytest.warns(UserWarning, match="(No codes specified|No such code 'F401')"): testing_app.build(force_all=True) pagename = request.param c = (testing_app.outdir / pagename).read_text(encoding="UTF-8") yield BeautifulSoup(c, "html5lib")
def page(app, request, monkeypatch) -> BeautifulSoup: random.seed("5678") app.build(force_all=True) pagename = request.param c = (app.outdir / pagename).read_text() yield BeautifulSoup(c, "html5lib")