Extend organization model with distinct social collectives
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a070b5-4994-7271-bd8b-7c3dbcedec4b
This commit is contained in:
parent
361c944325
commit
3e69bd51b0
13 changed files with 202 additions and 5 deletions
15
tests/test_social_collectives.py
Normal file
15
tests/test_social_collectives.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
from info_tech_canon.generation import concept_ownership
|
||||
from info_tech_canon.service import load_context
|
||||
|
||||
|
||||
def test_social_collectives_have_one_owner_and_family_is_not_a_subtype():
|
||||
context = load_context()
|
||||
rows = concept_ownership(context)["concepts"]
|
||||
for concept in ["Community", "Household"]:
|
||||
assert {r["owner"] for r in rows if r["concept"] == concept} == {"model/organization"}
|
||||
text = (context.infospace_root / "models/organization/InfoTechCanonOrganizationModel.md").read_text()
|
||||
taxonomy = text.split("# 9. Root Organization Taxonomy", 1)[1].split("# 10.", 1)[0]
|
||||
assert "CollectiveActor\n│ ├── Community\n│ └── Household" in taxonomy
|
||||
assert taxonomy.count("Community") == 1
|
||||
assert "Family" not in taxonomy
|
||||
assert "A Household is not a Family" in text
|
||||
Loading…
Add table
Add a link
Reference in a new issue