Skip to content

Commit

Permalink
fix log test
Browse files Browse the repository at this point in the history
  • Loading branch information
vdusek committed Aug 23, 2024
1 parent 4dd0a6b commit 35dfde7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/basic_crawler/test_basic_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from pathlib import Path
from typing import TYPE_CHECKING, Any
from unittest.mock import Mock
from weakref import CallableProxyType

import httpx
import pytest
Expand Down Expand Up @@ -641,6 +642,9 @@ async def handler(context: BasicCrawlingContext) -> None:


async def test_logs_final_statistics(monkeypatch: pytest.MonkeyPatch, caplog: pytest.LogCaptureFixture) -> None:
# Set the log level to INFO to capture the final statistics log.
caplog.set_level(logging.INFO)

crawler = BasicCrawler(configure_logging=False)

@crawler.router.default_handler
Expand Down

0 comments on commit 35dfde7

Please sign in to comment.