🐛 fix(test_cli.py): update CLI command in test_components_path to use 'serve' subcommand for better clarity and consistency

🐛 fix(test_llms_template.py): update description of `model` to use backticks and remove unnecessary comment
This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-08-28 11:16:37 -03:00
commit 1c498e78df
2 changed files with 2 additions and 3 deletions

View file

@ -23,7 +23,7 @@ def test_components_path(runner, client, default_settings):
result = runner.invoke(
app,
["--components-path", str(temp_dir), *default_settings],
["serve", "--components-path", str(temp_dir), *default_settings],
)
assert result.exit_code == 0, result.stdout
settings_manager = utils.get_settings_manager()

View file

@ -542,8 +542,7 @@ def test_chat_open_ai(client: TestClient, logged_in_headers):
}
assert template["_type"] == "ChatOpenAI"
assert (
model["description"]
== "Wrapper around OpenAI Chat large language models." # noqa E501
model["description"] == "`OpenAI` Chat large language models API." # noqa E501
)
assert set(model["base_classes"]) == {
"BaseLLM",