Skip to content

Conversation

vertti
Copy link
Owner

@vertti vertti commented Oct 7, 2025

  • Extracted core/app.py - Moved 127 lines of navigation logic out of init.py
    • init.py reduced from 218 → 91 lines (58% reduction)
    • Separated business logic from CLI setup
    • All navigation state machines now testable
  • Extracted pure functions for testability:
    • build_log_group_arn() and build_log_stream_name() in container module
    • Action dispatcher functions with clear responsibilities
    • Better separation of concerns throughout
  1. Bug Fixes Found Through Testing
  • Fixed get_task_and_definition() - now handles missing taskDefinition response
  • Better error handling for edge cases across services
  1. Test Coverage Improvements

Test additions:

  • 62 new test files/functions added
  • 274 total tests (was 174)
  • All critical features now tested

vertti added 11 commits October 7, 2025 09:09
  - Move all navigation loops and action dispatchers to new core/app.py module
  - Reduce __init__.py from 218 to 91 lines (58% reduction)
  - Extract testable action dispatch functions:
    - dispatch_container_action()
    - dispatch_task_action()
    - dispatch_service_action()
    - get_*_action_handlers() functions
  - Add 9 new tests for action dispatch logic in test_app.py
  - Update test_cli.py to mock new console location
  - Remove obvious test docstrings that repeat function names
  - Consolidate mock_ecs_client fixture to conftest.py
  - Simplify test_extract_name_from_arn (14 lines → 4 lines)
  - Remove obvious comments and inline explanations
@vertti vertti merged commit 0f64d21 into main Oct 7, 2025
3 checks passed
@vertti vertti deleted the more-tests branch October 7, 2025 09:01
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