Skip to content

Commit 8296e42

Browse files
committed
Fixup errors on pre commit
1 parent 8ef520b commit 8296e42

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

python/tests/unit/functions/test_function_copy_optimization.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
"""Tests for function_copy optimization (Issue #1: Lazy deepcopy)."""
44

5-
import pytest
65
from unittest.mock import patch
6+
import pytest
77

88
from semantic_kernel.functions import kernel_function
99

@@ -63,7 +63,10 @@ def test_function_copy_preserves_function_behavior(self, sample_function):
6363
# Verify function is callable (indirectly through having same underlying function)
6464
assert hasattr(copy, 'invoke')
6565

66-
@patch('semantic_kernel.functions.kernel_function.deepcopy', side_effect=AssertionError("deepcopy should not be called"))
66+
@patch(
67+
'semantic_kernel.functions.kernel_function.deepcopy',
68+
side_effect=AssertionError("deepcopy should not be called")
69+
)
6770
def test_function_copy_no_unnecessary_deepcopy(self, mock_deepcopy, sample_function):
6871
"""Test that deepcopy is NOT called when plugin_name doesn't change.
6972

0 commit comments

Comments
 (0)