Skip to content

Commit dc727f6

Browse files
chore: fix typos in tests/unit/crawlers/_adaptive_playwright/test_adaptive_playwright_crawler.py (#1530)
This PR fixes typos in the file tests/unit/crawlers/_adaptive_playwright/test_adaptive_playwright_crawler.py.
1 parent 99b9c1f commit dc727f6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/unit/crawlers/_adaptive_playwright/test_adaptive_playwright_crawler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
)
435435
async 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]))

0 commit comments

Comments
 (0)