MCPcopy Index your code
hub / github.com/github/spec-kit / test_install_from_directory

Method test_install_from_directory

tests/test_extensions.py:1083–1100  ·  view source on GitHub ↗

Test installing extension from directory.

(self, extension_dir, project_dir)

Source from the content-addressed store, hash-verified

1081 assert result is True
1082
1083 def test_install_from_directory(self, extension_dir, project_dir):
1084 """Test installing extension from directory."""
1085 manager = ExtensionManager(project_dir)
1086
1087 manifest = manager.install_from_directory(
1088 extension_dir,
1089 "0.1.0",
1090 register_commands=False # Skip command registration for now
1091 )
1092
1093 assert manifest.id == "test-ext"
1094 assert manager.registry.is_installed("test-ext")
1095
1096 # Check extension directory was copied
1097 ext_dir = project_dir / ".specify" / "extensions" / "test-ext"
1098 assert ext_dir.exists()
1099 assert (ext_dir / "extension.yml").exists()
1100 assert (ext_dir / "commands" / "hello.md").exists()
1101
1102 def test_install_from_directory_explicitly_recovers_active_skills_dir(
1103 self, extension_dir, project_dir, monkeypatch

Callers

nothing calls this directly

Calls 3

ExtensionManagerClass · 0.90
is_installedMethod · 0.45

Tested by

no test coverage detected