apify-sdk-python icon indicating copy to clipboard operation
apify-sdk-python copied to clipboard

Logger propagate False prevents caplog from capturing logs during tests

Open vdusek opened this issue 7 months ago • 0 comments

Setting logger.propagate to False in @apify/crawlee-python PR #1156 causes caplog to stop capturing logs. This is known pytest behavior (pytest-dev/pytest#3697).

This leads to failing log-related tests when using Crawlee v0.6.7 in apify-sdk-python PR #459.

Once this is resolved, undo the skip marks that were added in https://github.com/apify/apify-sdk-python/pull/459.

vdusek avatar Apr 23 '25 10:04 vdusek