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

Method test_runs_a_model

sdk/python/test.py:29–34  ·  view source on GitHub ↗

Test running a model.

(self)

Source from the content-addressed store, hash-verified

27 self.assertNotEqual(len(result.output), 0, "array should not be empty")
28
29 def test_runs_a_model(self):
30 """Test running a model."""
31 result = model.run("Jack and jill")
32
33 self.assertIsNone(result.error)
34 self.assertIsInstance(result.output, str, "returns output")
35
36 def test_params_with_kwargs(self):
37 """Test running a model with parameters."""

Callers

nothing calls this directly

Calls 1

runMethod · 0.45

Tested by

no test coverage detected