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

Method test_stream

sdk/python/test.py:70–75  ·  view source on GitHub ↗

Test streaming text.

(self)

Source from the content-addressed store, hash-verified

68 for chunk in stream:
69 self.assertIsInstance(chunk, str, "streams output")
70 def test_stream(self):
71 """Test streaming text."""
72 stream = model.run("Jack and jill", True)
73
74 for chunk in stream:
75 self.assertIsInstance(chunk, str, "streams output")
76
77 def test_streams_text_with_params(self):
78 """Test streaming text with parameters."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected