Create a file-based Registry for testing. Version history is always-on.
()
| 23 | |
| 24 | @pytest.fixture |
| 25 | def registry(): |
| 26 | """Create a file-based Registry for testing. Version history is always-on.""" |
| 27 | with tempfile.TemporaryDirectory() as tmpdir: |
| 28 | registry_path = Path(tmpdir) / "registry.pb" |
| 29 | config = RegistryConfig(path=str(registry_path)) |
| 30 | reg = Registry("test_project", config, None) |
| 31 | yield reg |
| 32 | |
| 33 | |
| 34 | @pytest.fixture |
nothing calls this directly
no test coverage detected