Skip to content

fix(tests): remove unused pytest imports and fix stale comments#9

Merged
tbjers merged 1 commit into
mainfrom
fix/remove-unused-imports
Jun 6, 2026
Merged

fix(tests): remove unused pytest imports and fix stale comments#9
tbjers merged 1 commit into
mainfrom
fix/remove-unused-imports

Conversation

@tbjers

@tbjers tbjers commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove unused import pytest from test_resolver.py and test_shaker.py
  • Replace type(x) is type(y) with isinstance in test_shaker.py make_pool helper (Copilot Autofix suggestion)
  • Rewrite implementation-detail comments in test_packer.py to describe observable behavior instead of internal branch numbers and parameter names
  • Fix two factually incorrect range-literal comments in test_upstream_patches.py ([0:5][0:1], and swapped step/end in the negative-step description)

Test plan

  • uv run pytest — all 83 tests pass, no new failures
  • No production code touched; changes are test-only

🤖 Generated with Claude Code

- Drop unused `import pytest` from test_resolver.py and test_shaker.py
- Replace `type(x) is type(y)` with `isinstance` in test_shaker.py make_pool helper
- Rewrite implementation-detail comments in test_packer.py to describe behavior instead
- Fix two factually wrong range-literal comments in test_upstream_patches.py

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tbjers tbjers merged commit 25846df into main Jun 6, 2026
7 checks passed
@tbjers tbjers deleted the fix/remove-unused-imports branch June 6, 2026 20:30
@codecov

codecov Bot commented Jun 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.59%. Comparing base (d9f1b8c) to head (543d0ea).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #9   +/-   ##
=======================================
  Coverage   99.59%   99.59%           
=======================================
  Files           6        6           
  Lines         244      244           
  Branches       53       53           
=======================================
  Hits          243      243           
  Partials        1        1           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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