(
self, crawler: Crawler, caplog: pytest.LogCaptureFixture
)
| 672 | |
| 673 | @coroutine_test |
| 674 | async def test_exception_slot( |
| 675 | self, crawler: Crawler, caplog: pytest.LogCaptureFixture |
| 676 | ) -> None: |
| 677 | engine = ExecutionEngine(crawler, lambda _: None) |
| 678 | crawler.engine = engine |
| 679 | await engine.open_spider_async() |
| 680 | assert engine._slot |
| 681 | del engine._slot.heartbeat |
| 682 | await engine.close_spider_async() |
| 683 | assert "Slot close failure" in caplog.text |
| 684 | |
| 685 | @coroutine_test |
| 686 | async def test_exception_downloader( |
nothing calls this directly
no test coverage detected