MCPcopy
hub / github.com/scrapy/scrapy / test_start

Method test_start

tests/test_spider_start.py:53–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51
52 @coroutine_test
53 async def test_start(self):
54 class TestSpider(Spider):
55 name = "test"
56
57 async def start(self):
58 yield ITEM_A
59
60 with warnings.catch_warnings():
61 warnings.simplefilter("error")
62 await self._test_spider(TestSpider, [ITEM_A])
63
64 @coroutine_test
65 async def test_start_subclass(self):

Callers

nothing calls this directly

Calls 1

_test_spiderMethod · 0.95

Tested by

no test coverage detected