-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deselect some tests because they cost money or exceed rate limits
- Loading branch information
1 parent
8164aa9
commit d99e0ed
Showing
4 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,3 @@ | ||
[pytest] | ||
markers = | ||
manual: Tests that are excluded from default execution |
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 |
---|---|---|
@@ -1,23 +1,31 @@ | ||
import pytest | ||
|
||
@pytest.mark.manual | ||
def test_anthropic(): | ||
from git_bob._endpoints import prompt_anthropic | ||
assert "ok" in str(prompt_anthropic("Answer with ok!")).lower() | ||
|
||
@pytest.mark.manual | ||
def test_openai(): | ||
from git_bob._endpoints import prompt_openai | ||
assert "ok" in str(prompt_openai("Answer with ok!")).lower() | ||
|
||
@pytest.mark.manual | ||
def test_google(): | ||
from git_bob._endpoints import prompt_googleai | ||
assert "ok" in str(prompt_googleai("Answer with ok!")).lower() | ||
|
||
@pytest.mark.manual | ||
def test_mistral(): | ||
from git_bob._endpoints import prompt_mistral | ||
assert "ok" in str(prompt_mistral("Answer with ok!")).lower() | ||
|
||
@pytest.mark.manual | ||
def test_azure(): | ||
from git_bob._endpoints import prompt_azure | ||
assert "ok" in str(prompt_azure("Answer with ok!", model="gpt-4o-mini")).lower() | ||
|
||
@pytest.mark.manual | ||
def test_deepseek(): | ||
from git_bob._endpoints import prompt_deepseek | ||
assert "ok" in str(prompt_deepseek("Answer with ok!")).lower() |