MCPcopy
hub / github.com/psf/requests-html / test_xpath

Function test_xpath

tests/test_requests_html.py:124–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122
123@pytest.mark.ok
124def test_xpath():
125 r = get()
126 html = r.html.xpath('/html', first=True)
127 assert 'no-js' in html.attrs['class']
128
129 a_hrefs = r.html.xpath('//a/@href')
130 assert '#site-map' in a_hrefs
131
132
133@pytest.mark.ok

Callers

nothing calls this directly

Calls 2

getFunction · 0.85
xpathMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…