personal memory agent
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat(tests): enhance test for scheduled agents by adding check_scheduled_agents call

+4 -1
+4 -1
tests/test_supervisor_schedule.py
··· 10 10 @patch("think.supervisor.get_agents") 11 11 def test_spawn_scheduled_agents(mock_get_agents, mock_cortex_request): 12 12 """Test that scheduled agents are spawned correctly via Cortex.""" 13 + from think.supervisor import check_scheduled_agents 14 + 13 15 # Mock agents with one scheduled and one not 14 16 mock_get_agents.return_value = { 15 17 "todo": { ··· 34 36 "/test/journal/agents/987654321_active.jsonl", 35 37 ] 36 38 37 - # Call the function 39 + # Call the functions (prepare then execute) 38 40 with patch.dict(os.environ, {"JOURNAL_PATH": "/test/journal"}, clear=True): 39 41 spawn_scheduled_agents() 42 + check_scheduled_agents() 40 43 41 44 # Should spawn 2 agents (todo and another_daily) 42 45 assert mock_cortex_request.call_count == 2