MCPcopy
hub / github.com/scrapy/scrapy / test_deprecated_crawler_stop

Function test_deprecated_crawler_stop

tests/test_crawler.py:783–790  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

781
782@coroutine_test
783async def test_deprecated_crawler_stop() -> None:
784 crawler = get_crawler(DefaultSpider)
785 d = crawler.crawl()
786 await maybe_deferred_to_future(d)
787 with pytest.warns(
788 ScrapyDeprecationWarning, match=r"Crawler.stop\(\) is deprecated"
789 ):
790 await maybe_deferred_to_future(crawler.stop())

Callers

nothing calls this directly

Calls 4

get_crawlerFunction · 0.90
maybe_deferred_to_futureFunction · 0.90
crawlMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected