diff --git a/tests/test_integration_family_promotion.py b/tests/test_integration_family_promotion.py index 9f2e87a3..42a12b42 100644 --- a/tests/test_integration_family_promotion.py +++ b/tests/test_integration_family_promotion.py @@ -473,8 +473,9 @@ async def test_an_idea_links_to_its_topic_and_its_reads_name_the_rules(family, t idea = await family_svc.get_idea(family["owner"], family["note"]) assert idea["topic"]["rulebook_id"] == topics["rulebook"] assert len(idea["topic"]["rules"]) == 2 - [listed] = [i for i in await family_svc.list_ideas(family["owner"]) - if i["note_id"] == family["note"]] + # Promotion lifted the idea onto its family record. + key = await family_svc.idea_key(family["note"]) + [listed] = [i for i in await family_svc.list_ideas(family["owner"]) if i["note_id"] == key] assert listed["topic"] == {"id": topics["norms"], "title": "distribution", "rulebook_id": topics["rulebook"]} diff --git a/tests/test_service_user_id_contract.py b/tests/test_service_user_id_contract.py index 80e2b9bf..d261e992 100644 --- a/tests/test_service_user_id_contract.py +++ b/tests/test_service_user_id_contract.py @@ -31,6 +31,8 @@ NEEDS_NO_CALLER = { "design_systems": {}, "family": { "next_version": "numbers a canon version inside a write that has checked the caller", + "idea_key": "translates an id the caller passed to the id its idea is kept under; " + "every caller checks access on the result next", }, "family_adoption": { "family_reference_ids": "the coverage refresh's mechanical read for a project",