Skip to content

Commit ebaffae

Browse files
committed
fix: update failing unit tests
1 parent c5de467 commit ebaffae

10 files changed

Lines changed: 68 additions & 67 deletions

tests/cli/test_cli.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Tests for the Vibecore CLI."""
22

3-
from unittest.mock import AsyncMock, MagicMock, patch
3+
from unittest.mock import ANY, AsyncMock, MagicMock, patch
44

55
from typer.testing import CliRunner
66

@@ -107,8 +107,8 @@ def test_cli_continue_with_session(
107107
mock_jsonl_class.assert_called_once()
108108
call_kwargs = mock_jsonl_class.call_args.kwargs
109109
assert call_kwargs["session_id"] == "chat-20250124-150000"
110-
# Verify run_textual was called with prompt (None) and session
111-
mock_vibecore.run_textual.assert_called_once_with(None, session=mock_session)
110+
# Verify run_textual was called with prompt (None), context, and session
111+
mock_vibecore.run_textual.assert_called_once_with(None, context=ANY, session=mock_session)
112112

113113
@patch("vibecore.cli.JSONLSession")
114114
@patch("vibecore.cli.Vibecore")
@@ -144,8 +144,8 @@ def test_cli_specific_session(self, mock_mcp_manager_class, mock_vibecore_class,
144144
mock_jsonl_class.assert_called_once()
145145
call_kwargs = mock_jsonl_class.call_args.kwargs
146146
assert call_kwargs["session_id"] == "chat-custom-123"
147-
# Verify run_textual was called with prompt (None) and session
148-
mock_vibecore.run_textual.assert_called_once_with(None, session=mock_session)
147+
# Verify run_textual was called with prompt (None), context, and session
148+
mock_vibecore.run_textual.assert_called_once_with(None, context=ANY, session=mock_session)
149149

150150
@patch("vibecore.cli.JSONLSession")
151151
@patch("vibecore.cli.Vibecore")
@@ -181,5 +181,5 @@ def test_cli_no_options(self, mock_mcp_manager_class, mock_vibecore_class, mock_
181181
call_kwargs = mock_jsonl_class.call_args.kwargs
182182
# Session ID should start with "chat-" for new sessions
183183
assert call_kwargs["session_id"].startswith("chat-")
184-
# Verify run_textual was called with prompt (None) and session
185-
mock_vibecore.run_textual.assert_called_once_with(None, session=mock_session)
184+
# Verify run_textual was called with prompt (None), context, and session
185+
mock_vibecore.run_textual.assert_called_once_with(None, context=ANY, session=mock_session)

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidget.test_feedback_widget_bad_with_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidget.test_feedback_widget_good_with_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidget.test_feedback_widget_long_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidget.test_feedback_widget_multiline_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidget.test_feedback_widget_with_partial_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidgetEdgeCases.test_feedback_widget_emoji_in_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_feedback_widget/TestFeedbackWidgetEdgeCases.test_feedback_widget_special_characters_in_comment.svg

Lines changed: 1 addition & 1 deletion
Loading

tests/ui/__snapshots__/test_widget_snapshots/TestWidgetSnapshots.test_tool_usage_bash.svg

Lines changed: 31 additions & 30 deletions
Loading

tests/ui/__snapshots__/test_widget_snapshots/TestWidgetSnapshots.test_tool_usage_todo.svg

Lines changed: 23 additions & 23 deletions
Loading

0 commit comments

Comments
 (0)