mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
style: auto-fix formatting
This commit is contained in:
@@ -646,9 +646,7 @@ class TestAGUIDispatchValidation:
|
||||
name=CustomEventNames.ManuallyEmitToolCall.value,
|
||||
value={"id": "valid-id", "name": "Tool"},
|
||||
)
|
||||
with pytest.raises(
|
||||
CopilotKitMisuseError, match="missing 'args'"
|
||||
):
|
||||
with pytest.raises(CopilotKitMisuseError, match="missing 'args'"):
|
||||
agent._dispatch_event(event)
|
||||
|
||||
def test_non_serializable_args_raises(self, agent):
|
||||
@@ -658,9 +656,7 @@ class TestAGUIDispatchValidation:
|
||||
name=CustomEventNames.ManuallyEmitToolCall.value,
|
||||
value={"id": "valid-id", "name": "Tool", "args": {1, 2, 3}},
|
||||
)
|
||||
with pytest.raises(
|
||||
CopilotKitMisuseError, match="not JSON-serializable"
|
||||
):
|
||||
with pytest.raises(CopilotKitMisuseError, match="not JSON-serializable"):
|
||||
agent._dispatch_event(event)
|
||||
|
||||
def test_non_dict_value_raises(self, agent):
|
||||
|
||||
Reference in New Issue
Block a user