Skip to content

refactor: replace sys.exit() with SessionError, 44 new tests#5

Merged
VasilevNStas merged 2 commits into
masterfrom
red-fixes
Jun 18, 2026
Merged

refactor: replace sys.exit() with SessionError, 44 new tests#5
VasilevNStas merged 2 commits into
masterfrom
red-fixes

Conversation

@VasilevNStas

Copy link
Copy Markdown
Owner

Красные пункты:\n- db.py: resolve_session_id, get_session_info, get_latest_session теперь raise SessionError вместо sys.exit\n- Все команды ловят SessionError и возвращают 1\n- 44 новых теста (159 total, +38%)\n- Тесты: get_messages, format_part_to_md, prune, SessionError\n- Version bumped to 0.4.8

- db.py: resolve_session_id, get_session_info, get_latest_session
  raise SessionError instead of sys.exit(1)
- All 7 command files catch SessionError and return exit code 1
- New tests: get_messages (12), format_part_to_md (17),
  prune (10), SessionError (4), resolve_session_id (1)
- Total: 159 tests (+38%), all passing
@VasilevNStas
VasilevNStas merged commit 8ac501e into master Jun 18, 2026
2 checks passed
@VasilevNStas
VasilevNStas deleted the red-fixes branch June 18, 2026 16:54
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