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

Method setup_method

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

Source from the content-addressed store, hash-verified

24
25class TestLogFormatter:
26 def setup_method(self):
27 self.formatter = LogFormatter()
28 self.spider = Spider("default")
29 self.spider.crawler = get_crawler()
30
31 def test_crawled_with_referer(self):
32 req = Request("http://www.example.com")

Callers

nothing calls this directly

Calls 3

LogFormatterClass · 0.90
SpiderClass · 0.90
get_crawlerFunction · 0.90

Tested by

no test coverage detected