fix(tests): align framework validator hint with praisonai-frameworks#2478
Conversation
β¦extra Update test_unknown_framework_generic_hint to expect praisonai-frameworks[...] after get_install_hint() switched from praisonai[...] during package split. Unblocks test-core (root) on main and open PRs. Co-authored-by: Cursor <cursoragent@cursor.com>
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more β On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
There was a problem hiding this comment.
Code Review
This pull request updates a unit test in test_framework_validators.py to assert that the error message contains 'praisonai-frameworks[some_unknown_framework_xyz]' instead of the previous 'pip install 'praisonai[some_unknown_framework_xyz]'' string. No review comments were provided, so there is no feedback to address.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (1)
π WalkthroughWalkthroughUpdates one assertion in the unit test for unknown framework names: the expected ChangesFramework Validator Test Fix
Estimated code review effortπ― 1 (Trivial) | β±οΈ ~2 minutes Possibly related PRs
Suggested labels
π₯ Pre-merge checks | β 4 | β 1β Failed checks (1 warning)
β Passed checks (4 passed)
β¨ 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 |
|
@copilot Do a thorough review of this PR. Read ALL existing reviewer comments above from Qodo, Coderabbit, and Gemini first β incorporate their findings. Review areas:
|
Greptile SummaryThis PR updates the framework validator test for the split framework package. The main change is:
Confidence Score: 5/5The changed test looks mergeable after tightening the fallback hint assertion.
src/praisonai/tests/unit/test_framework_validators.py Important Files Changed
Reviews (1): Last reviewed commit: "fix(tests): align framework validator hi..." | Re-trigger Greptile |
| assert_framework_available("some_unknown_framework_xyz") | ||
| assert "some_unknown_framework_xyz" in str(exc_info.value) | ||
| assert "pip install 'praisonai[some_unknown_framework_xyz]'" in str(exc_info.value) | ||
| assert "praisonai-frameworks[some_unknown_framework_xyz]" in str(exc_info.value) |
There was a problem hiding this comment.
Fallback Hint Format Unchecked
When the generic fallback path returns a malformed command that still contains praisonai-frameworks[some_unknown_framework_xyz], this assertion passes even though users would not get the intended pip install '...' command. This test covers the unknown-framework fallback, so it should keep checking the full install hint format.
| assert "praisonai-frameworks[some_unknown_framework_xyz]" in str(exc_info.value) | |
| assert "pip install 'praisonai-frameworks[some_unknown_framework_xyz]'" in str(exc_info.value) |
|
@claude You are the FINAL architecture reviewer. If the branch is under MervinPraison/PraisonAI (not a fork), you are able to make modifications to this branch and push directly. SCOPE: Focus ONLY on Python packages (praisonaiagents, praisonai). Do NOT modify praisonai-rust or praisonai-ts. Read ALL comments above from Gemini, Qodo, CodeRabbit, and Copilot carefully before responding. Phase 1: Review per AGENTS.md
Phase 2: FIX Valid Issues Phase 3: Final Verdict |
|
Claude finished @MervinPraison's task ββ View job β’ Final Architecture Review β PR #2478
Phase 1 β Review per AGENTS.md
Phase 2 β Valid Issues FixedGreptile (P2) β valid β β "Fallback Hint Format Unchecked" The original PR weakened the assertion to a bare substring ( Tightened the assertion accordingly: # src/praisonai/tests/unit/test_framework_validators.py:84
assert "pip install 'praisonai-frameworks[some_unknown_framework_xyz]'" in str(exc_info.value)Files modified:
Skipped (not actionable / not valid):
Test result: ( Phase 3 β Final Verdictβ Approved. The change is minimal, focused, backward-compatible, adds genuine value (tighter regression coverage), and introduces no scope creep or security/performance concerns.
--- β’ Branch: |
Summary
test_unknown_framework_generic_hintto expectpraisonai-frameworks[...]install hintsget_install_hint()behaviour after the package split (fix: update install hints to praisonai-frameworks after package splitΒ #2464)test-core (root)failure on main and PRs like fix: address three wrapper-layer architectural gapsΒ #2471Test plan
pytest tests/unit/test_framework_validators.py::TestAssertFrameworkAvailableRaises::test_unknown_framework_generic_hintpasses locallytest-coregreen on CIMade with Cursor
Summary by CodeRabbit