Repository navigation
Add helper extractor tests - #1274
Conversation
📝 WalkthroughWalkthroughThis PR adds comprehensive test coverage for utility helpers and unknown entity reference extraction. The changes include new test modules for ChangesTest Coverage for Utility and Extraction Helpers
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1274 +/- ##
==========================================
+ Coverage 34.89% 36.84% +1.94%
==========================================
Files 117 117
Lines 3029 3029
Branches 411 411
==========================================
+ Hits 1057 1116 +59
+ Misses 1959 1898 -61
- Partials 13 15 +2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Adds focused pytest coverage for utility helper extraction behavior and script unknown entity trigger extraction, fitting into the existing Spook repair/helper testing structure.
Changes:
- Adds utility tests for template detection, comma-separated entity ID splitting, and recursive template string extraction.
- Adds script repair helper tests for trigger entity extraction across scalar, list, nested, empty, and blueprint-style inputs.
- Adds package marker docstrings for the new
tests/ectoplasms/script/repairstest hierarchy.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
tests/test_util.py |
Adds helper coverage for utility extraction functions. |
tests/ectoplasms/script/repairs/test_unknown_entity_references.py |
Adds script trigger entity extraction tests. |
tests/ectoplasms/__init__.py |
Adds test package marker. |
tests/ectoplasms/script/__init__.py |
Adds script test package marker. |
tests/ectoplasms/script/repairs/__init__.py |
Adds script repair test package marker. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.



Description
Add focused tests for existing helper behavior salvaged from #1254:
No stale scaffold, workflow, dependency, or lockfile changes from #1254 are included.
Motivation and Context
These tests pin down behavior that is useful before refactoring the unknown-reference repairs and utility helpers. They give the follow-up cleanup work a safer baseline.
How has this been tested?
uv run pytest tests/test_util.py tests/ectoplasms/script/repairs/test_unknown_entity_references.py -quv run pytest -quv run ruff check tests/test_util.py tests/ectoplasms/script/repairs/test_unknown_entity_references.py tests/ectoplasms/__init__.py tests/ectoplasms/script/__init__.py tests/ectoplasms/script/repairs/__init__.pyuv run ruff format --check tests/test_util.py tests/ectoplasms/script/repairs/test_unknown_entity_references.py tests/ectoplasms/__init__.py tests/ectoplasms/script/__init__.py tests/ectoplasms/script/repairs/__init__.pyuv run pylint tests/test_util.py tests/ectoplasms/script/repairs/test_unknown_entity_references.pyScreenshots (if appropriate):
Not applicable.
Types of changes
Checklist