MCPcopy
hub / github.com/scrapy/scrapy / test_download_error_short

Method test_download_error_short

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

Source from the content-addressed store, hash-verified

149 )
150
151 def test_download_error_short(self):
152 # In practice, the complete traceback is shown by passing the
153 # 'exc_info' argument to the logging function
154 failure = Failure(Exception())
155 request = Request("http://www.example.com")
156 logkws = self.formatter.download_error(failure, request, self.spider)
157 logline = logkws["msg"] % logkws["args"]
158 assert logline == "Error downloading <GET http://www.example.com>"
159
160 def test_download_error_long(self):
161 # In practice, the complete traceback is shown by passing the

Callers

nothing calls this directly

Calls 2

RequestClass · 0.90
download_errorMethod · 0.80

Tested by

no test coverage detected