MCPcopy Create free account
hub / github.com/bugy/script-server / test_default_value

Method test_default_value

src/tests/model_helper_test.py:539–541  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

537 self.assertRaises(InvalidValueTypeException, model_helper.read_int_from_config, 'abc', {'abc': True})
538
539 def test_default_value(self):
540 value = model_helper.read_int_from_config('my_key', {'abc': 100})
541 self.assertIsNone(value)
542
543 def test_default_value_explicit(self):
544 value = model_helper.read_int_from_config('my_key', {'abc': 100}, default=5)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected