MCPcopy Create free account
hub / github.com/github/spec-kit / test_catalog_initialization

Method test_catalog_initialization

tests/test_extensions.py:2851–2860  ·  view source on GitHub ↗

Test catalog initialization.

(self, temp_dir)

Source from the content-addressed store, hash-verified

2849 """Test extension catalog functionality."""
2850
2851 def test_catalog_initialization(self, temp_dir):
2852 """Test catalog initialization."""
2853 project_dir = temp_dir / "project"
2854 project_dir.mkdir()
2855 (project_dir / ".specify").mkdir()
2856
2857 catalog = ExtensionCatalog(project_dir)
2858
2859 assert catalog.project_root == project_dir
2860 assert catalog.cache_dir == project_dir / ".specify" / "extensions" / ".cache"
2861
2862 def test_cache_directory_creation(self, temp_dir):
2863 """Test catalog cache directory is created when fetching."""

Callers

nothing calls this directly

Calls 1

ExtensionCatalogClass · 0.90

Tested by

no test coverage detected