Testing
Testing patterns
- Use
YRegistry.set_configin a fixture to provide a test snapshot - Clean up with
YRegistry.remove_config()to avoid leaking state - For snapshot testing, compare
cfg.to_dict()against expected dicts
YRegistry.set_config in a fixture to provide a test snapshotYRegistry.remove_config() to avoid leaking statecfg.to_dict() against expected dicts