Skip to content
This repository has been archived by the owner on Jan 7, 2025. It is now read-only.

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PCSwingle committed Apr 22, 2024
1 parent 5202f5c commit c6ac6d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mentat/code_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ def __init__(
self.include_files: Dict[Path, List[CodeFeature]] = {}
self.ignore_files: Set[Path] = set()

@api_guard
async def refresh_daemon(self):
"""Call before interacting with context to ensure daemon is up to date."""

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def mock_call_llm_api(mocker):
completion_mock = mocker.patch.object(LlmApiHandler, "call_llm_api")

def wrap_unstreamed_string(value):
return SpiceResponse(SpiceCallArgs("gpt-3.5-turbo", [], False), value, 1, 0, 0, True, 1, None)
return SpiceResponse(SpiceCallArgs("gpt-3.5-turbo", [], False), value, 1, 0, 0, True, 1)

def wrap_streamed_strings(values):
class MockStreamingSpiceResponse:
Expand All @@ -115,7 +115,7 @@ async def __anext__(self):
return values[self.cur_value - 1]

def current_response(self):
return SpiceResponse(SpiceCallArgs("gpt-3.5-turbo", [], True), "".join(values), 1, 0, 0, True, 1, None)
return SpiceResponse(SpiceCallArgs("gpt-3.5-turbo", [], True), "".join(values), 1, 0, 0, True, 1)

mock_spice_response = MockStreamingSpiceResponse()
return mock_spice_response
Expand Down

0 comments on commit c6ac6d7

Please sign in to comment.