We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac1f20d commit 9ecbd6aCopy full SHA for 9ecbd6a
tests/test_presets.py
@@ -1170,10 +1170,12 @@ def test_clear_cache(self, project_dir):
1170
assert not catalog.cache_file.exists()
1171
assert not catalog.cache_metadata_file.exists()
1172
1173
- def test_search_with_cached_data(self, project_dir):
+ def test_search_with_cached_data(self, project_dir, monkeypatch):
1174
"""Test search with cached catalog data."""
1175
from unittest.mock import patch
1176
1177
+ # Only use the default catalog to prevent fetching the community catalog from the network
1178
+ monkeypatch.setenv("SPECKIT_PRESET_CATALOG_URL", PresetCatalog.DEFAULT_CATALOG_URL)
1179
catalog = PresetCatalog(project_dir)
1180
catalog.cache_dir.mkdir(parents=True, exist_ok=True)
1181
0 commit comments