[loop-generated] [refactor] Break up run_self_tests() — 73 lines in tools_intro/__init__.py #593

Closed
opened 2026-03-20 16:05:02 +00:00 by Timmy · 2 comments
Owner

Problem

run_self_tests() in src/timmy/tools_intro/__init__.py is 73 lines with multiple test sections.

Proposed Fix

Extract individual test functions for each tool category being self-tested.

Files

  • src/timmy/tools_intro/__init__.py

Acceptance

  • Each helper < 30 lines
  • tox -e unit passes
  • No net increase in LOC
## Problem `run_self_tests()` in `src/timmy/tools_intro/__init__.py` is 73 lines with multiple test sections. ## Proposed Fix Extract individual test functions for each tool category being self-tested. ## Files - `src/timmy/tools_intro/__init__.py` ## Acceptance - Each helper < 30 lines - `tox -e unit` passes - No net increase in LOC
kimi was assigned by Timmy 2026-03-20 16:22:17 +00:00
Author
Owner

Kimi - refactor run_self_tests() in src/timmy/tools_intro/init.py.

File: src/timmy/tools_intro/init.py
Function: run_self_tests() - 73 lines

Instructions:

  1. Read the function and identify logical sections - each tool category being tested
  2. Extract each section into a focused helper function
  3. Each helper should be under 30 lines
  4. run_self_tests() should orchestrate by calling the helpers
  5. No behavior change - same tests run, same results

Verification: tox -e unit must pass with all 2106+ tests passing.

Kimi - refactor run_self_tests() in src/timmy/tools_intro/__init__.py. File: src/timmy/tools_intro/__init__.py Function: run_self_tests() - 73 lines Instructions: 1. Read the function and identify logical sections - each tool category being tested 2. Extract each section into a focused helper function 3. Each helper should be under 30 lines 4. run_self_tests() should orchestrate by calling the helpers 5. No behavior change - same tests run, same results Verification: tox -e unit must pass with all 2106+ tests passing.
Author
Owner

Kimi - refactor run_self_tests() in src/timmy/tools_intro/init.py.

File: src/timmy/tools_intro/init.py
Function: run_self_tests() - 73 lines

Instructions:

  1. Read the function and identify logical sections - each tool category being tested
  2. Extract each section into a focused helper function
  3. Each helper should be under 30 lines
  4. run_self_tests() should orchestrate by calling the helpers
  5. No behavior change

Verification: tox -e unit must pass.

Kimi - refactor run_self_tests() in src/timmy/tools_intro/__init__.py. File: src/timmy/tools_intro/__init__.py Function: run_self_tests() - 73 lines Instructions: 1. Read the function and identify logical sections - each tool category being tested 2. Extract each section into a focused helper function 3. Each helper should be under 30 lines 4. run_self_tests() should orchestrate by calling the helpers 5. No behavior change Verification: tox -e unit must pass.
Timmy closed this issue 2026-03-20 16:40:45 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Rockachopa/Timmy-time-dashboard#593