-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: added minimal tests for chats tool
- Loading branch information
Showing
2 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from gptme.tools.chats import list_chats, search_chats | ||
|
||
|
||
def test_list_chats(capsys): | ||
list_chats() | ||
captured = capsys.readouterr() | ||
assert "1." in captured.out | ||
|
||
|
||
def test_search_chats(capsys): | ||
search_chats("python") | ||
captured = capsys.readouterr() | ||
assert "Found matches" in captured.out |