(tmp_path)
| 211 | |
| 212 | |
| 213 | def test_seed_with_aliases(tmp_path): |
| 214 | registry = EntityRegistry.load(config_dir=tmp_path) |
| 215 | registry.seed( |
| 216 | mode="personal", |
| 217 | people=[{"name": "Maxwell", "relationship": "friend", "context": "personal"}], |
| 218 | projects=[], |
| 219 | aliases={"Max": "Maxwell"}, |
| 220 | ) |
| 221 | assert "Maxwell" in registry.people |
| 222 | assert "Max" in registry.people |
| 223 | assert registry.people["Max"].get("canonical") == "Maxwell" |
| 224 | |
| 225 | |
| 226 | def test_seed_skips_empty_names(tmp_path): |