Loading tests/test_config.py +1 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,7 @@ def test_config_cache_dir_default() -> None: def test_config_cache_dir_custom(monkeypatch) -> None: """Test custom cache directory path.""" custom_dir = "/tmp/test-cache" monkeypatch.setenv("PDF_REMOTE_CONVERTER_CACHE_DIR", custom_dir) monkeypatch.setenv("PDF_REMOTE_CONVERTER_CACHE_DIR", "/tmp/test-cache") # noqa: S108 settings = ProviderSettings() # Compare using resolve() to handle path normalization across platforms assert str(settings.cache_dir).replace("\\", "/").endswith("tmp/test-cache") Loading Loading
tests/test_config.py +1 −2 Original line number Diff line number Diff line Loading @@ -68,8 +68,7 @@ def test_config_cache_dir_default() -> None: def test_config_cache_dir_custom(monkeypatch) -> None: """Test custom cache directory path.""" custom_dir = "/tmp/test-cache" monkeypatch.setenv("PDF_REMOTE_CONVERTER_CACHE_DIR", custom_dir) monkeypatch.setenv("PDF_REMOTE_CONVERTER_CACHE_DIR", "/tmp/test-cache") # noqa: S108 settings = ProviderSettings() # Compare using resolve() to handle path normalization across platforms assert str(settings.cache_dir).replace("\\", "/").endswith("tmp/test-cache") Loading