Loading tests/test_http_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ import pytest import requests from hishel.requests import CacheAdapter from tdoc_crawler.config import CacheManager, reset_cache_managers from tdoc_crawler.config import DEFAULT_HTTP_CACHE_FILENAME, CacheManager, reset_cache_managers from tdoc_crawler.http_client import create_cached_session from tdoc_crawler.models.base import HttpCacheConfig Loading Loading @@ -234,7 +234,7 @@ class TestCachingBehavior: # The database path should match what CacheManager says # (hishel might not create empty DB if not used, but let's check path) assert manager.http_cache_file.name == "http-cache.sqlite3" assert manager.http_cache_file.name == DEFAULT_HTTP_CACHE_FILENAME session.close() Loading tests/test_new_cli_flags.py +2 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import pytest from typer.testing import CliRunner from tdoc_crawler.cli.app import app from tdoc_crawler.config import DEFAULT_HTTP_CACHE_FILENAME from tdoc_crawler.tdocs.models import TDocMetadata from tdoc_crawler.tdocs.operations.fetch import FetchMissingResult Loading Loading @@ -72,7 +73,7 @@ class TestNewCLIFlags: mock_manager = MagicMock() mock_manager.root = tmp_path mock_manager.db_file = tmp_path / "test.db" mock_manager.http_cache_file = tmp_path / "http-cache.sqlite3" mock_manager.http_cache_file = tmp_path / DEFAULT_HTTP_CACHE_FILENAME mock_manager.checkout_dir = tmp_path / "checkout" mock_manager.name = "test" mock_cache_manager_class.return_value.register.return_value = mock_manager Loading Loading
tests/test_http_client.py +2 −2 Original line number Diff line number Diff line Loading @@ -10,7 +10,7 @@ import pytest import requests from hishel.requests import CacheAdapter from tdoc_crawler.config import CacheManager, reset_cache_managers from tdoc_crawler.config import DEFAULT_HTTP_CACHE_FILENAME, CacheManager, reset_cache_managers from tdoc_crawler.http_client import create_cached_session from tdoc_crawler.models.base import HttpCacheConfig Loading Loading @@ -234,7 +234,7 @@ class TestCachingBehavior: # The database path should match what CacheManager says # (hishel might not create empty DB if not used, but let's check path) assert manager.http_cache_file.name == "http-cache.sqlite3" assert manager.http_cache_file.name == DEFAULT_HTTP_CACHE_FILENAME session.close() Loading
tests/test_new_cli_flags.py +2 −1 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ import pytest from typer.testing import CliRunner from tdoc_crawler.cli.app import app from tdoc_crawler.config import DEFAULT_HTTP_CACHE_FILENAME from tdoc_crawler.tdocs.models import TDocMetadata from tdoc_crawler.tdocs.operations.fetch import FetchMissingResult Loading Loading @@ -72,7 +73,7 @@ class TestNewCLIFlags: mock_manager = MagicMock() mock_manager.root = tmp_path mock_manager.db_file = tmp_path / "test.db" mock_manager.http_cache_file = tmp_path / "http-cache.sqlite3" mock_manager.http_cache_file = tmp_path / DEFAULT_HTTP_CACHE_FILENAME mock_manager.checkout_dir = tmp_path / "checkout" mock_manager.name = "test" mock_cache_manager_class.return_value.register.return_value = mock_manager Loading