File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
py/plugins/dev-local-vectorstore/tests Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change 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
3
20
4
21
import pytest
5
22
Original file line number Diff line number Diff line change 14
14
#
15
15
# SPDX-License-Identifier: Apache-2.0
16
16
17
- """Unit tests for Ollama Plugin."""
17
+ """Unit tests for Vectorstore Plugin."""
18
18
19
19
from unittest .mock import MagicMock
20
20
32
32
],
33
33
)
34
34
def test_action_resolve (kind , name , vectorstore_plugin_instance ):
35
- """Test initialize method of Ollama plugin."""
35
+ """Test initialize method of Vectorstore plugin."""
36
36
ai_mock = MagicMock (spec = Genkit )
37
37
assert hasattr (vectorstore_plugin_instance , "resolve_action" )
38
38
assert vectorstore_plugin_instance .resolve_action (ai_mock , kind , name ) is None
You can’t perform that action at this time.
0 commit comments