test(a4): the composite purge names its claude session by a real uuid (Issue #31, review)

claude now takes only a canonical uuid (81b6c2e), so the fixture id
'uuid-c' purged nothing. The three claude spellings in
test_purge_artifacts_composite become one uuid literal; the assertions
and the other adapters' parts are unchanged. Approved by the user.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GodopuandClaude Opus 5.5 committed 2026-10-16 13:43:23 +00:00
1 parent 81b6c2ea6b
commit 2a8d73825b
1 file changed
+3 -3
+3 -3
View File
@@ -209,12 +209,12 @@ def test_purge_artifacts_composite(tmp_path):
# 1. Claude # 1. Claude
claude_adapter = get_adapter('claude') claude_adapter = get_adapter('claude')
claude_ctx = DiscoveryContext(workspace=ws, agent_name='claude', home_dir=home) claude_ctx = DiscoveryContext(workspace=ws, agent_name='claude', home_dir=home)
c_path = claude_adapter.artifact_path('uuid-c', claude_ctx) c_path = claude_adapter.artifact_path('0c1a5f3e-6b2d-4c8e-9a7f-1d2e3f4a5b6c', claude_ctx)
os.makedirs(os.path.dirname(c_path), exist_ok=True) os.makedirs(os.path.dirname(c_path), exist_ok=True)
with open(c_path, 'w') as f: with open(c_path, 'w') as f:
f.write('{"sessionId": "uuid-c"}') f.write('{"sessionId": "0c1a5f3e-6b2d-4c8e-9a7f-1d2e3f4a5b6c"}')
assert os.path.exists(c_path) assert os.path.exists(c_path)
purged_c = claude_adapter.purge_artifacts('uuid-c', claude_ctx) purged_c = claude_adapter.purge_artifacts('0c1a5f3e-6b2d-4c8e-9a7f-1d2e3f4a5b6c', claude_ctx)
assert len(purged_c) == 1 assert len(purged_c) == 1
assert not os.path.exists(c_path) assert not os.path.exists(c_path)