molecule-sdk-python/tests
Molecule AI SDK-Dev 6a306f310d
All checks were successful
Test / test (3.11) (push) Successful in 1m50s
Test / test (3.12) (push) Successful in 1m49s
Test / test (3.13) (push) Successful in 1m52s
feat(sdk): add stop_event parameter to run_heartbeat_loop and run_agent_loop
Resolves KI-009. Both loops now accept a threading.Event that, when set,
causes immediate clean exit with return value "stopped". The check is
ordered before max_iterations so a signal always wins.

New tests:
- test_run_loop_exits_on_stop_event: event set before loop — 0 iterations
- test_run_loop_respects_stop_event_between_iterations: event set mid-run
- test_run_agent_loop_exits_on_stop_event: same for run_agent_loop

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 05:05:39 +00:00
..
conftest.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors 2026-04-23 18:18:12 +00:00
test_a2a_server.py feat(sdk): add A2AServer for Phase 30.8b inbound A2A support 2026-04-23 22:50:19 +00:00
test_call_peer_errors.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors 2026-04-23 18:18:12 +00:00
test_cli_connect.py feat: poll-mode inbound delivery + molecule connect CLI (Phase 30.8c) 2026-04-30 13:03:44 -07:00
test_inbound.py feat(sdk): add stop_event parameter to run_heartbeat_loop and run_agent_loop 2026-05-11 05:05:39 +00:00
test_remote_agent.py feat(sdk): add stop_event parameter to run_heartbeat_loop and run_agent_loop 2026-05-11 05:05:39 +00:00
test_retry_backoff.py feat(tests): GAP-05 add _get_with_retry() with 429 back-off + fix broken test_call_peer_errors (#11) 2026-04-21 07:08:01 +00:00
test_safe_extract.py fix(tests): add conftest.py + fix test_call_peer_errors.py broken imports 2026-04-23 18:18:10 +00:00
test_sdk.py fix(tests): add pytest-asyncio markers to async adaptor tests (#4) 2026-04-21 00:54:07 +00:00
test_sha256_verification.py fix(tests): add conftest.py + fix test_call_peer_errors.py broken imports 2026-04-23 18:18:10 +00:00
test_validators.py feat: initial Python SDK (extracted from molecule-monorepo/sdk/python) 2026-04-16 03:15:38 -07:00