Skip to content

test: add claims cypher relationship tests#78

Merged
sonesuke merged 2 commits intomainfrom
test/claims-cypher-relationship
Apr 5, 2026
Merged

test: add claims cypher relationship tests#78
sonesuke merged 2 commits intomainfrom
test/claims-cypher-relationship

Conversation

@sonesuke
Copy link
Copy Markdown
Owner

@sonesuke sonesuke commented Apr 5, 2026

Summary

  • Add unit test verifying claims are accessible via MATCH (c:claims) RETURN c.text and MATCH (p:Patent)-[:claims]->(c:claims) RETURN c.number, c.text
  • Add E2E test that fetches a real patent via MCP and verifies graph_schema output
  • Confirm p.claims returns null (claims are relationships, not properties)

Context

Validates the correct cypher patterns for accessing claims data in the graph. The graph_schema from a real patent fetch confirms:

  • (:Patent)-[:claims]->(:claims) with :claims {id: STRING, number: STRING, text: STRING}

Test plan

  • mise run pre-commit passed (16 unit, 9 e2e CLI, 4 e2e MCP tests)

🤖 Generated with Claude Code

Verify that claims are accessible via both label query
(MATCH (c:claims) RETURN c.text) and relationship query
(MATCH (p:Patent)-[:claims]->(c:claims) RETURN c.text),
and that p.claims returns null as expected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke changed the title test: add claims cypher relationship test test: add claims cypher relationship tests Apr 5, 2026
Add unit test and E2E test verifying claims are accessible via
MATCH (c:claims) RETURN c.text and
MATCH (p:Patent)-[:claims]->(c:claims) RETURN c.number, c.text,
and that p.claims returns null as expected.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sonesuke sonesuke force-pushed the test/claims-cypher-relationship branch from 024573e to d9852e5 Compare April 5, 2026 13:37
@sonesuke sonesuke merged commit 33170d2 into main Apr 5, 2026
4 checks passed
@sonesuke sonesuke deleted the test/claims-cypher-relationship branch April 5, 2026 13:44
@sonesuke sonesuke mentioned this pull request Apr 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants