Skip to content

Commit 9ecbd6a

Browse files
committed
fix: failing test
1 parent ac1f20d commit 9ecbd6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_presets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,10 +1170,12 @@ def test_clear_cache(self, project_dir):
11701170
assert not catalog.cache_file.exists()
11711171
assert not catalog.cache_metadata_file.exists()
11721172

1173-
def test_search_with_cached_data(self, project_dir):
1173+
def test_search_with_cached_data(self, project_dir, monkeypatch):
11741174
"""Test search with cached catalog data."""
11751175
from unittest.mock import patch
11761176

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)
11771179
catalog = PresetCatalog(project_dir)
11781180
catalog.cache_dir.mkdir(parents=True, exist_ok=True)
11791181

0 commit comments

Comments
 (0)