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

Method test_list_models

sdk/python/test.py:21–27  ·  view source on GitHub ↗

Test listing models.

(self)

Source from the content-addressed store, hash-verified

19 self.assertEqual(model.id, modelId, "loads the right model")
20
21 def test_list_models(self):
22 """Test listing models."""
23 result = bytez.list.models()
24
25 self.assertIsNone(result.error)
26 self.assertIsInstance(result.output, list, "should return an array of models")
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."""

Callers

nothing calls this directly

Calls 1

modelsMethod · 0.80

Tested by

no test coverage detected