teknium1
a44e041acf
test: strengthen assertions across 7 test files (batch 1)
Replaced weak 'is not None' / '> 0' / 'len >= 1' assertions with
concrete value checks across the most flagged test files:
gateway/test_pairing.py (11 weak → 0):
- Code assertions verify isinstance + len == CODE_LENGTH
- Approval results verify dict structure + specific user_id/user_name
- Added code2 != code1 check in rate_limit_expires
test_hermes_state.py (6 weak → 0):
- ended_at verified as float timestamp
- Search result counts exact (== 2, not >= 1)
- Context verified as non-empty list
- Export verified as dict, session ID verified
test_cli_init.py (4 weak → 0):
- max_turns asserts exact value (60)
- model asserts string with provider/name format
gateway/test_hooks.py (2 zero-assert tests → fixed):
- test_no_handlers_for_event: verifies no handler registered
- test_handler_error_does_not_propagate: verifies handler count + return
gateway/test_platform_base.py (9 weak image tests → fixed):
- extract_images tests now verify actual URL and alt_text
- truncate_message verifies content preservation after splitting
cron/test_scheduler.py (1 weak → 0):
- resolve_origin verifies dict equality, not just existence
cron/test_jobs.py (2 weak → 0 + 4 new tests):
- Schedule parsing verifies ISO timestamp type
- Cron expression verifies result is valid datetime string
- NEW: 4 tests for update_job() (was completely untested)
2026-03-05 18:39:37 -08:00
..
2026-03-05 18:22:39 -08:00
2026-03-05 18:39:37 -08:00
2026-02-28 14:28:04 +03:00
2026-03-05 18:39:37 -08:00
2026-02-26 00:53:57 -08:00
2026-03-04 19:35:01 -08:00
2026-02-28 14:28:04 +03:00
2026-03-05 18:22:39 -08:00
2025-10-01 23:29:25 +00:00
2026-03-02 04:34:21 -08:00
2026-03-04 14:42:41 -08:00
2026-03-01 19:59:24 -08:00
2026-03-02 17:18:15 +11:00
2026-03-05 18:39:37 -08:00
2026-02-25 18:20:38 -08:00
2026-03-05 01:41:50 -08:00
2026-02-25 19:27:54 -08:00
2026-03-01 19:59:24 -08:00
2026-02-28 21:47:51 -08:00
2026-03-05 18:39:37 -08:00
2026-03-01 03:12:37 -05:00
2026-02-26 13:54:20 +03:00
2026-03-01 20:03:03 -08:00
2026-02-28 21:47:51 -08:00
2026-03-05 08:54:05 -08:00
2026-03-03 00:28:26 +03:00
2026-02-26 13:54:20 +03:00
2026-02-26 13:27:58 +03:00
2026-02-28 21:28:28 +03:00