diff --git a/tests/integration/test_intra_package_cleanup.py b/tests/integration/test_intra_package_cleanup.py index 2a94e9557..7405015b9 100644 --- a/tests/integration/test_intra_package_cleanup.py +++ b/tests/integration/test_intra_package_cleanup.py @@ -280,8 +280,8 @@ def test_shared_file_survives_when_other_package_still_deploys_it( for dep in local_deps_before if ".github/prompts/shared.prompt.md" in (dep.get("deployed_files") or []) ] - assert len(shared_claims) == 2, ( - "Both local packages must claim the shared prompt before testing cleanup" + assert {dep["name"] for dep in shared_claims} == {"pkg-b"}, ( + "Only the last writer may claim the shared prompt before testing cleanup" ) shared_target = temp_project / ".github" / "prompts" / "shared.prompt.md"