(self)
| 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 |
| 162 | # 'exc_info' argument to the logging function |
| 163 | failure = Failure(Exception()) |
| 164 | request = Request("http://www.example.com") |
| 165 | logkws = self.formatter.download_error( |
| 166 | failure, request, self.spider, "Some message" |
| 167 | ) |
| 168 | logline = logkws["msg"] % logkws["args"] |
| 169 | assert logline == "Error downloading <GET http://www.example.com>: Some message" |
| 170 | |
| 171 | def test_scraped(self): |
| 172 | item = CustomItem() |
nothing calls this directly
no test coverage detected