MCPcopy Create free account
hub / github.com/apify/crawlee-python / test_bind_robots_txt_url

Function test_bind_robots_txt_url

tests/unit/_utils/test_robots.py:87–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85
86
87async def test_bind_robots_txt_url() -> None:
88 content = 'User-agent: *\nDisallow: /'
89 robots = await RobotsTxtFile.from_content('http://check.com/robots.txt', content)
90 assert not robots.is_allowed('http://check.com/test.html')
91 assert robots.is_allowed('http://othercheck.com/robots.txt')

Callers

nothing calls this directly

Calls 2

from_contentMethod · 0.80
is_allowedMethod · 0.80

Tested by

no test coverage detected