✅ Add Fish shell completion tests for colon options#1475
Conversation
|
Hi @Mohamed-Elwasila, thanks for picking up this TODO 👍 I checked out this branch locally on Windows (Python 3.12, fresh venv from A few observations from the review: Things that look right
One suggestion that would strengthen the tests (optional — not blocking) The current assert "latest alpine image" in result.stdout # help for alpine:latest
assert "fake image: for testing" in result.stdout # help for alpine:helloThat would catch a regression in Sorry the PR has been sitting for a while — bumping it for visibility. |
svlandeg
left a comment
There was a problem hiding this comment.
Hi @Mohamed-Elwasila, thanks so much for addressing this TODO! I don't remember why I had it, I feel like I might have just forgot it back when we were working on #988.
Anyway, good to see this resolved now, and the structure you've used is consistent with the other tests in the same module. I've also updated the PR with the suggestions from @ADiTyaRaj8969 that were merged earlier in a separate PR for the other tests (#1767).
@ADiTyaRaj8969 : thanks for the review! It's useful. It does read like it's been (partly) LLM-generated. That's fine, but please in the future disclose any AI usage up front, both for reviewing and for creating PRs 🙏
Thanks again both!
Summary
This PR adds the missing Fish shell completion tests that were marked as TODO in
test_completion_option_colon.py.Changes
test_completion_colon_fish_all()- Tests all completions are showntest_completion_colon_fish_partial()- Tests partial matching (e.g., "alpine" matches both variants)test_completion_colon_fish_single()- Tests single match completionTesting
All 3 new tests pass, and all 16 tests in the file pass without issues.
Fixes the TODO comment at line 219 in
tests/test_completion/test_completion_option_colon.py.