test: the keep-src rule is checked by its outcome, not by a spy on the call - #197
openvoiceos-bot wants to merge 1 commit into
Conversation
…e call The wiring test recorded that both_spellings was called with the caller's rule. A comparison that keeps the call and reads the unexpanded list passes it unchanged. The test now runs one echo round with an entry point on the source message, so the rolling expectation flips while the skill's reply, which reaches the bus under the canonical spelling, keeps the original routing: a rule naming only the legacy spelling accepts the reply solely because it was expanded before the membership test. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks 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 |
Another day, another set of automated checks. Let's see! 🌅I've aggregated the results of the automated checks for this PR below. 📋 Repo HealthKeeping the project in tip-top shape! 🏃 ✅ All required files present. Latest Version: ✅ 🔒 Security (pip-audit)I've checked the vulnerability database for hits. 🎯 ✅ No known vulnerabilities found (129 packages scanned). 🏷️ Release PreviewEnsuring the version bump is correctly calculated. 🔢 Current:
✅ PR title follows conventional commit format. 🚀 Release Channel Compatibility Predicted next version:
🔍 LintThe results are in the bag! 🎒 ❌ ruff: issues found — see job log ⚖️ License CheckVerifying the source of all binary files. 💾 ✅ No license violations found. Policy: Apache 2.0 (universal donor). StrongCopyleft / NetworkCopyleft / WeakCopyleft / Other / Error categories fail. MPL allowed. 📊 CoverageIs the code fully hydrated with tests? Let's see! 💧 Files below 80% coverage (15 files)
Full report: download the 🔨 Build TestsTesting the robustness of the build environment. 🏔️ ✅ All versions pass
Your loyal script, at your command 🫡 |
Follows the review on #191. The wiring test spied on the
both_spellingscall, so a comparison that keeps the call and reads the caller's list verbatim at the membership test (if expected.msg_type in self.keep_original_src) left the suite green. The test now asserts the outcome the rule exists for.The scenario. One echo round with an entry point on the source message, so the rolling expectation flips to (B, A) while the skill's reply keeps the original (A, B). The reply reaches the bus under the canonical spelling
ovos.utterance.speak. Three runs in one test:ovos.utterance.speak: passes under either comparisonspeak: passes solely because the rule was expanded before the membership testsource doesnt match! expected 'B' got 'A'No source change.