File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/unit/crawlers/_adaptive_playwright Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ async def pre_nav_hook_pw_only(context: AdaptivePlaywrightPreNavCrawlingContext)
292292
293293 await crawler .run (test_urls [:1 ])
294294
295- # Default behavior. Hook is called everytime , both static sub crawler and playwright sub crawler.
295+ # Default behavior. Hook is called every time , both static sub crawler and playwright sub crawler.
296296 pre_nav_hook_common .assert_has_calls ([call (test_urls [0 ]), call (test_urls [0 ])])
297297 # Hook is called only by playwright sub crawler.
298298 pre_nav_hook_playwright .assert_called_once_with ('about:blank' )
@@ -433,13 +433,13 @@ async def request_handler(context: AdaptivePlaywrightCrawlingContext) -> None:
433433 ],
434434)
435435async def test_adaptive_crawler_exceptions_in_sub_crawlers (* , error_in_pw_crawler : bool , test_urls : list [str ]) -> None :
436- """Test that correct results are commited when exceptions are raised in sub crawlers.
436+ """Test that correct results are committed when exceptions are raised in sub crawlers.
437437
438438 Exception in bs sub crawler will be logged and pw sub crawler used instead.
439439 Any result from bs sub crawler will be discarded, result form pw crawler will be saved instead.
440440 (But global state modifications through `use_state` will not be reverted!!!)
441441
442- Exception in pw sub crawler will prevent any result from being commited . Even if `push_data` was called before
442+ Exception in pw sub crawler will prevent any result from being committed . Even if `push_data` was called before
443443 the exception
444444 """
445445 static_only_no_detection_predictor = _SimpleRenderingTypePredictor (detection_probability_recommendation = cycle ([0 ]))
You can’t perform that action at this time.
0 commit comments