Skip to content

Commit

Permalink
Add missing test
Browse files Browse the repository at this point in the history
  • Loading branch information
collindutter committed May 23, 2024
1 parent 4766361 commit cbec093
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit/tasks/test_actions_subtask.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import pytest
from griptape.artifacts.actions_artifact import ActionsArtifact
from griptape.artifacts.text_artifact import TextArtifact
from tests.mocks.mock_tool.tool import MockTool
from griptape.tasks import ToolkitTask, ActionsSubtask
from griptape.structures import Agent
Expand Down Expand Up @@ -44,6 +45,8 @@ def test_input_with_multiline_actions(self):
def test_input(self):
assert ActionsSubtask("{{ hello }}").input.value == "{{ hello }}"

assert ActionsSubtask(lambda self: TextArtifact("hello")).input.value == "hello"

assert (
ActionsSubtask(
ActionsArtifact(
Expand Down

0 comments on commit cbec093

Please sign in to comment.