We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 70fdd92 + 92c06fe commit 33762a6Copy full SHA for 33762a6
1 file changed
tests/unittests/cli/utils/test_cli_deploy.py
@@ -714,6 +714,13 @@ def mock_handle_login():
714
cli_deploy._onboarding, "handle_login_with_google", mock_handle_login
715
)
716
717
+ # Mock subprocess.run to avoid calling gcloud
718
+ monkeypatch.setattr(
719
+ subprocess,
720
+ "run",
721
+ lambda *a, **k: types.SimpleNamespace(stdout="fake-project\n"),
722
+ )
723
+
724
fake_vertexai = types.ModuleType("vertexai")
725
726
class _FakeAgentEngines:
0 commit comments