MCPcopy
hub / github.com/scrapy/scrapy / setup_method

Method setup_method

tests/test_logformatter.py:196–199  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

194
195class TestLogformatterSubclass(TestLogFormatter):
196 def setup_method(self):
197 self.formatter = LogFormatterSubclass()
198 self.spider = Spider("default")
199 self.spider.crawler = get_crawler(Spider)
200
201 def test_crawled_with_referer(self):
202 req = Request("http://www.example.com")

Callers

nothing calls this directly

Calls 3

SpiderClass · 0.90
get_crawlerFunction · 0.90

Tested by

no test coverage detected