Skip to content

Commit ea34fc9

Browse files
authored
Make tests work after running make install (#1368)
1 parent 0f4b447 commit ea34fc9

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ examples/pydantic_ai_examples/.chat_app_messages.sqlite
1616
/question_graph_history.json
1717
/docs-site/.wrangler/
1818
/CLAUDE.md
19+
node_modules/

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
.pre-commit: ## Check that pre-commit is installed
99
@pre-commit -V || echo 'Please install pre-commit: https://pre-commit.com/'
1010

11+
.PHONY: .deno
12+
.deno: ## Check that deno is installed
13+
@deno --version > /dev/null 2>&1 || (printf "\033[0;31m✖ Error: deno is not installed, but is needed for mcp-run-python\033[0m\n Please install deno: https://docs.deno.com/runtime/getting_started/installation/\n" && exit 1)
14+
1115
.PHONY: install
12-
install: .uv .pre-commit ## Install the package, dependencies, and pre-commit for local development
16+
install: .uv .pre-commit .deno ## Install the package, dependencies, and pre-commit for local development
1317
uv sync --frozen --all-extras --all-packages --group lint --group docs
1418
pre-commit install --install-hooks
1519

tests/providers/test_google_vertex.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ def refresh(self, request: Request): ...
159159
mocker.patch('pydantic_ai.providers.google_vertex.google.auth.default', return_value=return_value)
160160

161161

162+
@pytest.mark.skipif(
163+
not os.getenv('CI', False), reason='Requires properly configured local google vertex config to pass'
164+
)
162165
@pytest.mark.vcr()
163166
async def test_vertexai_provider(allow_model_requests: None):
164167
m = GeminiModel('gemini-2.0-flash', provider='google-vertex')

0 commit comments

Comments
 (0)