Test removing a pack.
(self, temp_dir)
| 344 | assert "installed_at" in metadata |
| 345 | |
| 346 | def test_remove(self, temp_dir): |
| 347 | """Test removing a pack.""" |
| 348 | packs_dir = temp_dir / "packs" |
| 349 | packs_dir.mkdir() |
| 350 | registry = PresetRegistry(packs_dir) |
| 351 | |
| 352 | registry.add("test-pack", {"version": "1.0.0"}) |
| 353 | assert registry.is_installed("test-pack") |
| 354 | |
| 355 | registry.remove("test-pack") |
| 356 | assert not registry.is_installed("test-pack") |
| 357 | |
| 358 | def test_remove_nonexistent(self, temp_dir): |
| 359 | """Test removing a pack that doesn't exist.""" |
nothing calls this directly
no test coverage detected