mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-25 02:55:07 +02:00
test(cli): remove beta notice tests
This commit is contained in:
@@ -71,7 +71,6 @@ def test_agent_create(deployment_api, tmp_path, monkeypatch):
|
||||
_, requests, build = deployment_api
|
||||
result = CliRunner().invoke(cli, AGENT_ARGS)
|
||||
assert result.exit_code == 0, result.output
|
||||
assert "--agent-id and --environment flags are in private beta" in result.output
|
||||
assert dict(requests[0].url.params) == {
|
||||
"name_contains": "",
|
||||
"agent_id": "customer-support",
|
||||
@@ -104,14 +103,3 @@ def test_agent_rejects_explicit_name(deployment_api, monkeypatch):
|
||||
assert result.exit_code == 2
|
||||
assert "cannot be combined" in result.output
|
||||
assert not requests
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"args", [["--agent-id", "customer-support"], ["--environment", "staging"], []]
|
||||
)
|
||||
def test_agent_list_beta_notice(deployment_api, args):
|
||||
result = CliRunner().invoke(cli, ["deploy", "list", *args])
|
||||
assert result.exit_code == 0, result.output
|
||||
assert (
|
||||
"--agent-id and --environment flags are in private beta" in result.output
|
||||
) == bool(args)
|
||||
|
||||
Reference in New Issue
Block a user