def test_get_gcp_project_from_gcloud_fail(
    monkeypatch: pytest.MonkeyPatch,
) -> None:
  """Failure of gcloud project lookup should return empty string."""
  monkeypatch.setattr(
      subprocess,
      "run",
      lambda *_a, **_k: (_ for _ in ()).throw(FileNotFoundError()),
  )
  assert cli_create._get_gcp_project_from_gcloud() == ""
Failure of gcloud project lookup should return empty string.
tests/unittests/cli/utils/test_cli_create.py