Skip to content

test: parametrize get_cwd variable-token tests#784

Merged
edvilme merged 1 commit into
mainfrom
phase4/pytest-round1
Apr 10, 2026
Merged

test: parametrize get_cwd variable-token tests#784
edvilme merged 1 commit into
mainfrom
phase4/pytest-round1

Conversation

@edvilme
Copy link
Copy Markdown
Contributor

@edvilme edvilme commented Apr 10, 2026

Summary

Pytest modernization Round 1 for pylint:

  • test_get_cwd.py: Collapse 9 individual variable-token test functions into a single @pytest.mark.parametrize\ test. Each VS Code variable (\, \, etc.) is now a parametrized case with a descriptive test ID. All edge-case and fallback tests are kept as-is.

Net: 9 → 1 test function (same coverage).

Part of the pytest modernization effort (Phase 4.4e Round 1).

@edvilme edvilme added the debt Technical debt or repo cleanup label Apr 10, 2026
- Collapse 9 individual variable-token tests in test_get_cwd.py into a
  single @pytest.mark.parametrize test (9 → 1 function, same coverage)
- Keep all edge-case and fallback tests unchanged

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@edvilme edvilme force-pushed the phase4/pytest-round1 branch from dfc40aa to 52af171 Compare April 10, 2026 21:32
Copy link
Copy Markdown
Contributor

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved via Review Center.

@edvilme edvilme merged commit cd501b0 into main Apr 10, 2026
21 checks passed
@edvilme edvilme deleted the phase4/pytest-round1 branch April 10, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Technical debt or repo cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants