-
Notifications
You must be signed in to change notification settings - Fork 363
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bd6c06d
commit 36264f6
Showing
4 changed files
with
7 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
from unittest.mock import Mock | ||
from backend.config.tools import Tool | ||
|
||
from backend.config.deployments import ( | ||
get_default_deployment, | ||
) | ||
from backend.tests.unit.model_deployments.mock_deployments.mock_cohere_platform import ( | ||
MockCohereDeployment, | ||
) | ||
|
||
|
||
def test_get_default_deployment(mock_available_model_deployments: Mock) -> None: | ||
default_deployment = get_default_deployment() | ||
assert isinstance(default_deployment, MockCohereDeployment) | ||
def test_all_tools_have_id() -> None: | ||
for tool in Tool: | ||
assert tool.value.ID is not None |
Empty file.
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