Test installing an incompatible pack raises error.
(self, project_dir, temp_dir, valid_pack_data)
| 603 | manager.install_from_directory(pack_dir, "0.1.5") |
| 604 | |
| 605 | def test_install_incompatible(self, project_dir, temp_dir, valid_pack_data): |
| 606 | """Test installing an incompatible pack raises error.""" |
| 607 | valid_pack_data["requires"]["speckit_version"] = ">=99.0.0" |
| 608 | incompat_dir = temp_dir / "incompat-pack" |
| 609 | incompat_dir.mkdir() |
| 610 | manifest_path = incompat_dir / "preset.yml" |
| 611 | with open(manifest_path, 'w') as f: |
| 612 | yaml.dump(valid_pack_data, f) |
| 613 | (incompat_dir / "templates").mkdir() |
| 614 | (incompat_dir / "templates" / "spec-template.md").write_text("test") |
| 615 | |
| 616 | manager = PresetManager(project_dir) |
| 617 | with pytest.raises(PresetCompatibilityError): |
| 618 | manager.install_from_directory(incompat_dir, "0.1.5") |
| 619 | |
| 620 | def test_install_from_zip(self, project_dir, pack_dir, temp_dir): |
| 621 | """Test installing from a ZIP file.""" |
nothing calls this directly
no test coverage detected