MCPcopy Create free account
hub / github.com/Bytez-com/docs / test_streams_text_with_params

Method test_streams_text_with_params

sdk/python/test.py:77–82  ·  view source on GitHub ↗

Test streaming text with parameters.

(self)

Source from the content-addressed store, hash-verified

75 self.assertIsInstance(chunk, str, "streams output")
76
77 def test_streams_text_with_params(self):
78 """Test streaming text with parameters."""
79 stream = model.run("Jack and jill", {"max_length": 100}, stream=True)
80
81 for chunk in stream:
82 self.assertIsInstance(chunk, str, "streams output")
83
84 def test_stream_false_does_not_stream(self):
85 """Test that `stream=False` does not return a stream."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected