MCPcopy
hub / github.com/scrapy/scrapy / test_url_has_any_extension

Function test_url_has_any_extension

tests/test_utils_url.py:97–99  ·  view source on GitHub ↗
(url: str, expected: bool)

Source from the content-addressed store, hash-verified

95 ],
96)
97def test_url_has_any_extension(url: str, expected: bool) -> None:
98 deny_extensions = {"." + e for e in IGNORED_EXTENSIONS}
99 assert url_has_any_extension(url, deny_extensions) is expected
100
101
102@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

url_has_any_extensionFunction · 0.90

Tested by

no test coverage detected