Skip to content

Commit 9fa1db6

Browse files
Update python/tests/unit/functions/test_function_copy_optimization.py
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e50fbd0 commit 9fa1db6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python/tests/unit/functions/test_function_copy_optimization.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
@pytest.fixture
1313
def sample_function():
14-
"""Create a sample kernel function for testing."""
1514
@kernel_function
1615
def test_func(input: str) -> str:
1716
return f"Result: {input}"
18-
19-
return test_func
17+
18+
from semantic_kernel.functions.kernel_function_from_method import KernelFunctionFromMethod
19+
return KernelFunctionFromMethod(method=test_func, plugin_name="test_plugin")
2020

2121

2222
class TestFunctionCopyOptimization:

0 commit comments

Comments
 (0)