Skip to content

Commit 925a909

Browse files
committed
Suppress complexity warning for test_docs_examples function
The function complexity is 16 (limit is 15) due to necessary setup and conditional logic. This matches the pattern used by other complex test functions in the file (model_logic, stream_model_logic).
1 parent 122be13 commit 925a909

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def tmp_path_cwd(tmp_path: Path):
115115
'ignore:`BuiltinToolCallEvent` is deprecated', 'ignore:`BuiltinToolResultEvent` is deprecated'
116116
)
117117
@pytest.mark.parametrize('example', find_filter_examples())
118-
def test_docs_examples(
118+
def test_docs_examples( # noqa: C901
119119
example: CodeExample,
120120
eval_example: EvalExample,
121121
mocker: MockerFixture,

0 commit comments

Comments
 (0)