Skip to content

feat: Add PytrizeFixtureUsages command#8

Merged
sigfriedCub1990 merged 2 commits into
mainfrom
pytrize-echo
Feb 18, 2026
Merged

feat: Add PytrizeFixtureUsages command#8
sigfriedCub1990 merged 2 commits into
mainfrom
pytrize-echo

Conversation

@sigfriedCub1990
Copy link
Copy Markdown
Owner

Summary

  • Adds :PytrizeFixtureUsages command that finds all usages of the fixture under the cursor across the project
  • Results are loaded into Neovim's quickfix list (setqflist) and the window opens automatically
  • Each entry includes file, line, column, and line content
  • Fixture definitions are excluded — only parameters, body references, and @pytest.mark.usefixtures(...) strings are reported
  • Updates README with new command documentation

Test plan

  • find_usage_positions finds plain parameters, typed parameters, and usefixtures strings
  • find_usage_positions excludes fixture definitions, attribute accesses, and keyword argument names
  • find_all_usages returns correctly structured quickfix items across multiple files
  • find_all_usages does not include the fixture definition in results
  • find_all_usages finds the correct file and line number for parameter usages
  • All 85 tests pass

🤖 Generated with Claude Code

sigfriedCub1990 and others added 2 commits February 18, 2026 23:02
…kfix

New command places all usages of the fixture under the cursor into
Neovim's quickfix list (parameters, body references, and usefixtures
strings). Fixture definitions are excluded from results.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sigfriedCub1990 sigfriedCub1990 merged commit b04456b into main Feb 18, 2026
2 checks passed
@sigfriedCub1990 sigfriedCub1990 deleted the pytrize-echo branch February 18, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant