MCPcopy
hub / github.com/scrapy/scrapy / _incompatible

Method _incompatible

tests/test_scheduler.py:387–395  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

385
386class TestIncompatibility:
387 def _incompatible(self):
388 settings = {
389 "SCHEDULER_PRIORITY_QUEUE": "scrapy.pqueues.DownloaderAwarePriorityQueue",
390 "CONCURRENT_REQUESTS_PER_IP": 1,
391 }
392 crawler = get_crawler(Spider, settings)
393 scheduler = Scheduler.from_crawler(crawler)
394 spider = Spider(name="spider")
395 scheduler.open(spider)
396
397 def test_incompatibility(self):
398 with warnings.catch_warnings():

Callers 1

test_incompatibilityMethod · 0.95

Calls 4

get_crawlerFunction · 0.90
SpiderClass · 0.90
from_crawlerMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected