(self, crawler: Crawler)
| 652 | |
| 653 | @coroutine_test |
| 654 | async def test_no_slot(self, crawler: Crawler) -> None: |
| 655 | engine = ExecutionEngine(crawler, lambda _: None) |
| 656 | crawler.engine = engine |
| 657 | await engine.open_spider_async() |
| 658 | slot = engine._slot |
| 659 | engine._slot = None |
| 660 | with pytest.raises(RuntimeError, match="Engine slot not assigned"): |
| 661 | await engine.close_spider_async() |
| 662 | # close it correctly |
| 663 | engine._slot = slot |
| 664 | await engine.close_spider_async() |
| 665 | |
| 666 | @coroutine_test |
| 667 | async def test_no_spider(self, crawler: Crawler) -> None: |
nothing calls this directly
no test coverage detected