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

Method test_install_duplicate

tests/test_extensions.py:1167–1176  ·  view source on GitHub ↗

Test installing already installed extension.

(self, extension_dir, project_dir)

Source from the content-addressed store, hash-verified

1165 assert captured["create_missing_active_skills_dir"] is False
1166
1167 def test_install_duplicate(self, extension_dir, project_dir):
1168 """Test installing already installed extension."""
1169 manager = ExtensionManager(project_dir)
1170
1171 # Install once
1172 manager.install_from_directory(extension_dir, "0.1.0", register_commands=False)
1173
1174 # Try to install again
1175 with pytest.raises(ExtensionError, match="already installed"):
1176 manager.install_from_directory(extension_dir, "0.1.0", register_commands=False)
1177
1178 def test_install_force_reinstall(self, extension_dir, project_dir):
1179 """Test force-reinstalling an already-installed extension."""

Callers

nothing calls this directly

Calls 2

ExtensionManagerClass · 0.90

Tested by

no test coverage detected