Skip to content

Commit

Permalink
fixed a test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindy Long committed Dec 19, 2024
1 parent 9d28212 commit 5e6300f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_tool_rule_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,7 @@ def test_tool_rules_with_invalid_path():
rule_4 = ChildToolRule(tool_name=FINAL_TOOL, children=[END_TOOL]) # Disconnected rule, no cycle here
terminal_rule = TerminalToolRule(tool_name=END_TOOL)

# Action & Assert: Attempt to create the ToolRulesSolver with a cycle should raise ValidationError
with pytest.raises(ToolRuleValidationError, match="Tool rules does not have a path from Init to Terminal."):
ToolRulesSolver(tool_rules=[init_rule, rule_1, rule_2, rule_3, rule_4, terminal_rule])
ToolRulesSolver(tool_rules=[init_rule, rule_1, rule_2, rule_3, rule_4, terminal_rule])

# Now: add a path from the start tool to the final tool
rule_5 = ConditionalToolRule(
Expand Down

0 comments on commit 5e6300f

Please sign in to comment.