mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-09-20 16:47:55 +02:00
fix(cli): validate --tag before any control plane call
This commit is contained in:
@@ -642,3 +642,13 @@ def test_push_to_with_deployment_id_fetches_the_deployment_once(
|
||||
"docker inspect-digest",
|
||||
_patch("dep-ext"),
|
||||
]
|
||||
|
||||
|
||||
def test_invalid_tag_fails_before_any_control_plane_call(
|
||||
deploy_project: DeployProject,
|
||||
) -> None:
|
||||
result = deploy_project.run("--no-remote", "--tag", "not a tag")
|
||||
|
||||
assert result.exit_code != 0
|
||||
assert "Image tag may only contain" in result.output
|
||||
assert deploy_project.timeline == []
|
||||
|
||||
Reference in New Issue
Block a user