@@ -76,6 +76,7 @@ class TestActiveCatalogs:
7676 def test_defaults_when_no_config (self , tmp_path , monkeypatch ):
7777 monkeypatch .setenv ("HOME" , str (tmp_path ))
7878 monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
79+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
7980 (tmp_path / ".specify" ).mkdir ()
8081 cat = IntegrationCatalog (tmp_path )
8182 active = cat .get_active_catalogs ()
@@ -153,6 +154,9 @@ def fake_urlopen(url, timeout=10):
153154 monkeypatch .setattr (urllib .request , "urlopen" , fake_urlopen )
154155
155156 def test_fetch_and_search_all (self , tmp_path , monkeypatch ):
157+ monkeypatch .setenv ("HOME" , str (tmp_path ))
158+ monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
159+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
156160 (tmp_path / ".specify" ).mkdir ()
157161 cat = IntegrationCatalog (tmp_path )
158162
@@ -178,6 +182,9 @@ def test_fetch_and_search_all(self, tmp_path, monkeypatch):
178182 assert "acme-coder" in ids
179183
180184 def test_search_by_tag (self , tmp_path , monkeypatch ):
185+ monkeypatch .setenv ("HOME" , str (tmp_path ))
186+ monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
187+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
181188 (tmp_path / ".specify" ).mkdir ()
182189 cat = IntegrationCatalog (tmp_path )
183190
@@ -195,6 +202,9 @@ def test_search_by_tag(self, tmp_path, monkeypatch):
195202 assert all ("cli" in r .get ("tags" , []) for r in results )
196203
197204 def test_search_by_query (self , tmp_path , monkeypatch ):
205+ monkeypatch .setenv ("HOME" , str (tmp_path ))
206+ monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
207+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
198208 (tmp_path / ".specify" ).mkdir ()
199209 cat = IntegrationCatalog (tmp_path )
200210
@@ -213,6 +223,9 @@ def test_search_by_query(self, tmp_path, monkeypatch):
213223 assert results [0 ]["id" ] == "claude"
214224
215225 def test_get_integration_info (self , tmp_path , monkeypatch ):
226+ monkeypatch .setenv ("HOME" , str (tmp_path ))
227+ monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
228+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
216229 (tmp_path / ".specify" ).mkdir ()
217230 cat = IntegrationCatalog (tmp_path )
218231
@@ -232,6 +245,9 @@ def test_get_integration_info(self, tmp_path, monkeypatch):
232245 assert cat .get_integration_info ("nonexistent" ) is None
233246
234247 def test_invalid_catalog_format (self , tmp_path , monkeypatch ):
248+ monkeypatch .setenv ("HOME" , str (tmp_path ))
249+ monkeypatch .setenv ("USERPROFILE" , str (tmp_path ))
250+ monkeypatch .delenv ("SPECKIT_INTEGRATION_CATALOG_URL" , raising = False )
235251 (tmp_path / ".specify" ).mkdir ()
236252 cat = IntegrationCatalog (tmp_path )
237253
0 commit comments