From 6f870786318b02411764f82be34ee7a88121ba42 Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Sun, 12 Apr 2026 04:36:03 +0800 Subject: [PATCH] test: update deploy_push CLI tests for new skip_validate kwarg `deploy_push` gained a `--skip-validate` flag that forwards to `DeployCommand.deploy()` as `skip_validate=False` by default. Update the two CLI tests that pin the exact call args. --- lib/crewai/tests/cli/test_cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/crewai/tests/cli/test_cli.py b/lib/crewai/tests/cli/test_cli.py index ed74a6036..b324294b1 100644 --- a/lib/crewai/tests/cli/test_cli.py +++ b/lib/crewai/tests/cli/test_cli.py @@ -367,7 +367,7 @@ def test_deploy_push(command, runner): result = runner.invoke(deploy_push, ["-u", uuid]) assert result.exit_code == 0 - mock_deploy.deploy.assert_called_once_with(uuid=uuid) + mock_deploy.deploy.assert_called_once_with(uuid=uuid, skip_validate=False) @mock.patch("crewai.cli.cli.DeployCommand") @@ -376,7 +376,7 @@ def test_deploy_push_no_uuid(command, runner): result = runner.invoke(deploy_push) assert result.exit_code == 0 - mock_deploy.deploy.assert_called_once_with(uuid=None) + mock_deploy.deploy.assert_called_once_with(uuid=None, skip_validate=False) @mock.patch("crewai.cli.cli.DeployCommand")