Skip to content

Commit 0a6a794

Browse files
authored
Reenable vertexai docs test (#2709)
1 parent dd57957 commit 0a6a794

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

docs/models/google.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ To use Vertex AI, you may need to set up [application default credentials](https
6161

6262
If you have the [`gcloud` CLI](https://cloud.google.com/sdk/gcloud) installed and configured, you can use:
6363

64-
```python {test="skip"}
64+
```python {test="ci_only"}
6565
from pydantic_ai import Agent
6666
from pydantic_ai.models.google import GoogleModel
6767
from pydantic_ai.providers.google import GoogleProvider

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ def vertex_provider_auth(mocker: MockerFixture) -> None: # pragma: lax no cover
423423
try:
424424
from google.genai import _api_client
425425
except ImportError:
426-
pytest.skip('google is not installed')
426+
return # do nothing if this isn't installed
427427

428428
@dataclass
429429
class NoOpCredentials:

tests/test_examples.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def test_docs_examples( # noqa: C901
113113
allow_model_requests: None,
114114
env: TestEnv,
115115
tmp_path_cwd: Path,
116+
vertex_provider_auth: None,
116117
):
117118
mocker.patch('pydantic_ai.agent.models.infer_model', side_effect=mock_infer_model)
118119
mocker.patch('pydantic_ai._utils.group_by_temporal', side_effect=mock_group_by_temporal)

0 commit comments

Comments
 (0)