We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 46871e4 + bde803f commit 38c0758Copy full SHA for 38c0758
1 file changed
tests/test_bootstrapper.py
@@ -1,4 +1,5 @@
1
import json
2
+import logging
3
import pathlib
4
import typing
5
from unittest.mock import Mock, patch
@@ -427,9 +428,12 @@ def test_cache_lookup_resolver_exception_logs_info(
427
428
"""ResolverException (wheel not found) returns (None, None) and logs info."""
429
bt = _make_cache_bootstrapper(tmp_context)
430
- with patch(
431
- "fromager.resolver.find_all_matching_from_provider",
432
- side_effect=ResolverException("no matching version"),
+ with (
+ caplog.at_level(logging.INFO, logger="fromager.bootstrapper"),
433
+ patch(
434
+ "fromager.resolver.find_all_matching_from_provider",
435
+ side_effect=ResolverException("no matching version"),
436
+ ),
437
):
438
result = bt._download_wheel_from_cache(
439
req=Requirement("test-package"),
0 commit comments