MCPcopy Create free account
hub / github.com/PAIR-code/lit / test_init_spec_populated

Method test_init_spec_populated

lit_nlp/api/model_test.py:202–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 self.assertEmpty(_BatchingTestModel.init_spec())
201
202 def test_init_spec_populated(self):
203 self.assertEqual(
204 _SavedTestModel.init_spec(),
205 {
206 "path": types.String(),
207 "compute_embs": types.Boolean(default=False, required=False),
208 },
209 )
210
211 @parameterized.named_parameters(
212 ("bad_args", _CompatibilityTestModel),

Callers

nothing calls this directly

Calls 1

init_specMethod · 0.45

Tested by

no test coverage detected