MCPcopy
hub / github.com/scrapy/scrapy / test_start_urls

Method test_start_urls

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

Source from the content-addressed store, hash-verified

38
39 @coroutine_test
40 async def test_start_urls(self):
41 class TestSpider(Spider):
42 name = "test"
43 start_urls = ["data:,"]
44
45 async def parse(self, response):
46 yield ITEM_A
47
48 with warnings.catch_warnings():
49 warnings.simplefilter("error")
50 await self._test_spider(TestSpider, [ITEM_A])
51
52 @coroutine_test
53 async def test_start(self):

Callers

nothing calls this directly

Calls 1

_test_spiderMethod · 0.95

Tested by

no test coverage detected