Skip to content

Commit

Permalink
update tests to set the payload in the metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Sep 23, 2024
1 parent 1d811c8 commit 4646eb2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/llm/nodes/test_extractor_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_execute():
df = cudf.DataFrame({"insects": insects.copy(), "mammals": mammals.copy(), "reptiles": reptiles.copy()})
message = ControlMessage()
message.payload(MessageMeta(df))
message.set_metadata("llm_message_meta", message.payload())

task_dict = {"input_keys": ["mammals", "reptiles"]}
node = ExtracterNode()
Expand Down
1 change: 1 addition & 0 deletions tests/llm/nodes/test_manual_extractor_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def test_execute():
df = cudf.DataFrame({"insects": insects.copy(), "mammals": mammals.copy(), "reptiles": reptiles.copy()})
message = ControlMessage()
message.payload(MessageMeta(df))
message.set_metadata("llm_message_meta", message.payload())

task_dict = {"input_keys": ["insects"]}
node = ManualExtracterNode(["mammals", "reptiles"])
Expand Down
1 change: 1 addition & 0 deletions tests/llm/task_handlers/test_simple_task_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def test_try_handle(dataset_cudf: DatasetManager):

message = ControlMessage()
message.payload(MessageMeta(df))
message.set_metadata("llm_message_meta", message.payload())

task_handler = SimpleTaskHandler(['reptiles'])

Expand Down

0 comments on commit 4646eb2

Please sign in to comment.