File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -1679,14 +1679,6 @@ def test_function_text_format_lark_invalid():
16791679 FunctionTextFormat (syntax = 'lark' , grammar = 'invalid grammar [' )
16801680
16811681
1682- @pytest .mark .skip (
1683- reason = 'throwing an exception causes coverage to drop to 73% due to the new branch affecting unrelated areas'
1684- )
1685- def test_function_text_format_syntax_invalid ():
1686- with pytest .raises (ValueError , match = 'Unsupported syntax antlr' ):
1687- FunctionTextFormat (syntax = 'antlr' , grammar = "grammar T; a: 'a';" )
1688-
1689-
16901682def test_tool_definition_single_string_argument ():
16911683 schema = {
16921684 'type' : 'object' ,
@@ -1762,7 +1754,7 @@ def test_agent_tool_with_text_format():
17621754
17631755 @agent .tool_plain (text_format = 'text' )
17641756 def analyze_text (text : str ) -> str :
1765- return f'Analyzed: { text } '
1757+ return f'Analyzed: { text } ' # pragma: no cover
17661758
17671759 tool_def = agent ._function_toolset .tools ['analyze_text' ].tool_def
17681760 assert tool_def .text_format == 'text'
@@ -1776,7 +1768,7 @@ def test_agent_tool_with_cfg_format():
17761768
17771769 @agent .tool_plain (text_format = cfg )
17781770 def parse_numbers (numbers : str ) -> str :
1779- return f'Parsed: { numbers } '
1771+ return f'Parsed: { numbers } ' # pragma: no cover
17801772
17811773 tool_def = agent ._function_toolset .tools ['parse_numbers' ].tool_def
17821774 assert tool_def .text_format == cfg
You can’t perform that action at this time.
0 commit comments