Skip to content

Commit

Permalink
Updated, removed bad tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Emery Berger committed Apr 12, 2024
1 parent c0044ce commit c96d9cd
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 307 deletions.
109 changes: 0 additions & 109 deletions src/chatdbg/old_stuff/gdb_print_test.py

This file was deleted.

108 changes: 0 additions & 108 deletions src/chatdbg/old_stuff/lldb_print_test.py

This file was deleted.

35 changes: 0 additions & 35 deletions test/test_coverup_13.py

This file was deleted.

52 changes: 0 additions & 52 deletions test/test_coverup_36.py

This file was deleted.

6 changes: 3 additions & 3 deletions test/test_coverup_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# branches ['44->45', '44->52', '45->46', '45->51']

import pytest
from chatdbg.util.trim import extract
from chatdbg.util.trim import _extract
from unittest.mock import patch

@pytest.fixture
Expand All @@ -27,7 +27,7 @@ def test_extract_with_tool_call_ids(mock_sandwich_tokens, mock_litellm_encode):
model = "model"
tool_call_ids = [1, 2]

tools, other = extract(messages, model, tool_call_ids)
tools, other = _extract(messages, model, tool_call_ids)

assert mock_sandwich_tokens.called
assert len(tools) == 2
Expand All @@ -45,7 +45,7 @@ def test_extract_without_tool_call_ids(mock_sandwich_tokens, mock_litellm_encode
model = "model"
tool_call_ids = [3]

tools, other = extract(messages, model, tool_call_ids)
tools, other = _extract(messages, model, tool_call_ids)

assert not mock_sandwich_tokens.called
assert len(tools) == 0
Expand Down

0 comments on commit c96d9cd

Please sign in to comment.