Merge branch 'dev' into test/custom-types-coverage

This commit is contained in:
Karim shoair
2026-03-17 21:42:17 +02:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ class CrawlerEngine:
Returns True if successfully restored, False otherwise.
"""
if not self._checkpoint_system_enabled:
raise
return False
data = await self._checkpoint_manager.load()
if data is None:
+1 -2
View File
@@ -613,8 +613,7 @@ class TestCheckpointMethods:
@pytest.mark.asyncio
async def test_restore_from_checkpoint_raises_when_disabled(self):
engine = _make_engine() # no crawldir → checkpoint disabled
with pytest.raises(RuntimeError):
await engine._restore_from_checkpoint()
assert (await engine._restore_from_checkpoint()) is False
# ---------------------------------------------------------------------------