Repository navigation
fix(cli): resolve stale XFAIL in tags command (#1012) - #1581
Conversation
Problem: test_tags_command_plain_paths_cover_empty_hint_and_tabular_counts was marked @pytest.mark.xfail referencing closed issue #1012. The provider-aware empty hint was never implemented and the Rich table renderer was never added. Fix: add provider-aware empty hint to tags command, update test assertions to match actual text-based output (click.echo, not Rich table), and remove the stale XFAIL marker. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR consolidates several behavioral fixes and data validation improvements: source name fallback logic for unknown providers, conditional cache invalidation, payload field normalization, and tags CLI output enhancement with user hints. It also standardizes module export lists and updates supporting test fixtures. ChangesCore behavioral fixes, data validation, and module cleanup
Tags CLI enhancement and tests
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
Summary
Resolve a stale
@pytest.mark.xfailon the tags command test thatreferenced closed issue #1012. Implement the provider-aware empty
hint and update test assertions to match actual text-based output.
Problem
test_tags_command_plain_paths_cover_empty_hint_and_tabular_countswas marked
@pytest.mark.xfail(strict=True)referencing #1012, whichwas closed without implementing either the provider-aware empty hint
or Rich table renderer. The XFAIL was flagged as PARTIAL in the
governance audit (#1310).
Solution
tags_command: when--provideris passed and no tags exist, show "No tags found for provider 'X'."
with a hint to use
--add-tag.click.echo, not Rich tables).@pytest.mark.xfaildecorator.merge (17 files: ruff format, dict key dedup, unused variable).
Verification
Ref #1012, #1310
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Bug Fixes
Tests