Skip to content

Commit aca5654

Browse files
committed
Add unit test
1 parent d9ece3d commit aca5654

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/prompt/test_prompt_node.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,12 @@ def test_streaming_prompt_node():
408408
assert ttsh.stream_handler_invoked, "Stream handler should have been invoked"
409409

410410

411+
def test_prompt_node_with_text_generation_model():
412+
node = PromptNode("bigscience/bigscience-small-testing")
413+
r = node("Hello big science!")
414+
assert len(r[0]) > 0
415+
416+
411417
@pytest.mark.integration
412418
@pytest.mark.parametrize("prompt_model", ["hf", "openai", "azure"], indirect=True)
413419
def test_simple_pipeline(prompt_model):

0 commit comments

Comments
 (0)