MCPcopy
hub / github.com/scrapy/scrapy / test_follow_all_css

Method test_follow_all_css

tests/test_http_response_text.py:416–423  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

414 assert req.flags == ["cached", "allowed"]
415
416 def test_follow_all_css(self):
417 expected = [
418 "http://example.com/sample3.html",
419 "http://example.com/innertag.html",
420 ]
421 response = self._links_response()
422 extracted = [r.url for r in response.follow_all(css='a[href*="example.com"]')]
423 assert expected == extracted
424
425 def test_follow_all_css_skip_invalid(self):
426 expected = [

Callers

nothing calls this directly

Calls 2

_links_responseMethod · 0.80
follow_allMethod · 0.45

Tested by

no test coverage detected