Test that registry data persists across instances.
(self, temp_dir)
| 377 | assert "pack-b" in all_packs |
| 378 | |
| 379 | def test_persistence(self, temp_dir): |
| 380 | """Test that registry data persists across instances.""" |
| 381 | packs_dir = temp_dir / "packs" |
| 382 | packs_dir.mkdir() |
| 383 | |
| 384 | # Add with first instance |
| 385 | registry1 = PresetRegistry(packs_dir) |
| 386 | registry1.add("test-pack", {"version": "1.0.0"}) |
| 387 | |
| 388 | # Load with second instance |
| 389 | registry2 = PresetRegistry(packs_dir) |
| 390 | assert registry2.is_installed("test-pack") |
| 391 | |
| 392 | def test_corrupted_registry(self, temp_dir): |
| 393 | """Test recovery from corrupted registry file.""" |
nothing calls this directly
no test coverage detected