Skip to content

test(reporting): drop redundant function-level re import - #295

Merged
kurok merged 1 commit into
mainfrom
test/remove-redundant-re-import
Sep 30, 2026
Merged

kurok merged 1 commit into
mainfrom
test/remove-redundant-re-import

Conversation

@kurok

@kurok kurok commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Summary

Removes a redundant import re inside a test method. re is already imported at module level, so the local import did nothing. Clears CodeQL alert #125 (py/repeated-import).

Changes

  • tests/test_reporting.py: remove the function-level import re in TestRpsTimelineRendering.test_html_labels_non_negative_with_monotonic_start; the test now uses the module-level import from line 7.

Related Issues

Code-scanning alert #125.

Testing

  • All existing tests pass (pytest): tests/test_reporting.py 58 passed
  • New tests added for new functionality: n/a, test-only cleanup
  • Linter passes (ruff check src/ tests/)

Checklist

  • Code follows existing project style
  • No unnecessary files or dependencies added
  • Documentation updated if needed (README, wiki): n/a

re is already imported at module level (line 7); the local import inside
test_html_labels_non_negative_with_monotonic_start shadowed it for no
effect. Clears CodeQL py/repeated-import alert #125.

Signed-off-by: kurok <22548029+kurok@users.noreply.github.com>
@codecov

codecov Bot commented Sep 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@kurok
kurok merged commit 720e1ca into main Sep 30, 2026
17 checks passed
@kurok
kurok deleted the test/remove-redundant-re-import branch September 30, 2026 09:28
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