Test listing models.
(self)
| 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.""" |