MCPcopy
hub / github.com/scrapy/scrapy / test_custom_spider_loader

Function test_custom_spider_loader

tests/test_spiderloader/__init__.py:239–246  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

237
238
239def test_custom_spider_loader():
240 settings = Settings(
241 {
242 "SPIDER_LOADER_CLASS": CustomSpiderLoader,
243 }
244 )
245 spider_loader = get_spider_loader(settings)
246 assert isinstance(spider_loader, CustomSpiderLoader)
247
248
249def test_dummy_spider_loader(spider_loader_env):

Callers

nothing calls this directly

Calls 2

SettingsClass · 0.90
get_spider_loaderFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…