Skip to content

Commit 7b00f78

Browse files
committed
feat(py/genkit): added the resolve method dummy for vectorstore plugin.
1 parent 90c9c9e commit 7b00f78

File tree

2 files changed

+21
-4
lines changed

2 files changed

+21
-4
lines changed

py/plugins/dev-local-vectorstore/tests/conftest.py

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
1-
from unittest import mock
2-
from unittest.mock import AsyncMock, MagicMock, patch
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
17+
"""Conftest for Vectorstore plugin."""
18+
19+
from unittest.mock import patch
320

421
import pytest
522

py/plugins/dev-local-vectorstore/tests/test_plugin_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
# SPDX-License-Identifier: Apache-2.0
1616

17-
"""Unit tests for Ollama Plugin."""
17+
"""Unit tests for Vectorstore Plugin."""
1818

1919
from unittest.mock import MagicMock
2020

@@ -32,7 +32,7 @@
3232
],
3333
)
3434
def test_action_resolve(kind, name, vectorstore_plugin_instance):
35-
"""Test initialize method of Ollama plugin."""
35+
"""Test initialize method of Vectorstore plugin."""
3636
ai_mock = MagicMock(spec=Genkit)
3737
assert hasattr(vectorstore_plugin_instance, "resolve_action")
3838
assert vectorstore_plugin_instance.resolve_action(ai_mock, kind, name) is None

0 commit comments

Comments
 (0)