Test installing extension from directory.
(self, extension_dir, project_dir)
| 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 |
nothing calls this directly
no test coverage detected