MCPcopy
hub / github.com/MemPalace/mempalace / test_seed_with_aliases

Function test_seed_with_aliases

tests/test_entity_registry.py:213–223  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

211
212
213def 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
226def test_seed_skips_empty_names(tmp_path):

Callers

nothing calls this directly

Calls 3

seedMethod · 0.80
loadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected