WIP: PYTHON

This commit is contained in:
2026-03-05 14:07:04 -05:00
parent a13a6c5cd0
commit e81843b11b
10 changed files with 97 additions and 106 deletions

View File

@@ -64,7 +64,8 @@ def test_run_worker_lifecycle_calls_ai_client_send(monkeypatch: pytest.MonkeyPat
mock_send = MagicMock()
monkeypatch.setattr(ai_client, 'send', mock_send)
mock_send.return_value = "Task complete. I have updated the file."
run_worker_lifecycle(ticket, context)
result = run_worker_lifecycle(ticket, context)
assert result == "Task complete. I have updated the file."
assert ticket.status == "completed"
mock_send.assert_called_once()
# Check if description was passed to send()