Skip to content

Add test framework (56 tests, no API keys needed)#8

Merged
shreyasrajesh0308 merged 3 commits into
mainfrom
feature/test-framework
Mar 11, 2026
Merged

Add test framework (56 tests, no API keys needed)#8
shreyasrajesh0308 merged 3 commits into
mainfrom
feature/test-framework

Conversation

@shreyasrajesh0308

Copy link
Copy Markdown
Collaborator

Summary

  • Add comprehensive test suite covering core models, entity matching, BM25 search, and operator utilities (56 tests total)
  • All tests run offline — no API keys required (embedding index is mocked)
  • Uncomment space_nodes, time_nodes, and edge fields in GSWStructure that were commented out but still referenced by existing methods
  • Shared fixtures in conftest.py for reusable test data

Test plan

  • uv run pytest tests/ -v — all 56 tests pass
  • CI lint + test jobs pass on PR

🤖 Generated with Claude Code

shreyasrajesh0308 and others added 3 commits March 11, 2026 16:35
Provides reusable fixtures: sample entities, verb phrases, questions,
complete GSW structures, multi-doc GSWs, and temp JSON file helpers.
All fixtures are pure data — no API keys or network access needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- test_models: GSWStructure, EntityNode, Role, SpaceTime nodes (20 tests)
- test_matcher: entity matching with substring, word overlap, connected entities (10 tests)
- test_gsw_tools: BM25 search, multi-file index, entity context retrieval (13 tests)
- test_operator_utils: chunking, JSON extraction, GSW parsing (13 tests)
- conftest: shared fixtures (sample_gsw, multi_doc_gsws, temp file helpers)
- Uncomment space/time/edge fields in GSWStructure (needed by existing methods)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The code-review plugin needs Read, Glob, Grep, git, and gh tool
permissions to analyze PRs and post review comments.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@shreyasrajesh0308
shreyasrajesh0308 merged commit 36c5279 into main Mar 11, 2026
4 checks passed
@shreyasrajesh0308
shreyasrajesh0308 deleted the feature/test-framework branch March 11, 2026 23:56
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.

1 participant