MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / test_frozen

Method test_frozen

tests/tool_tests/test_submodules.py:61–65  ·  view source on GitHub ↗

Test that SubmoduleParamSpec is frozen/immutable

(self)

Source from the content-addressed store, hash-verified

59 assert spec.schema == {"type": "integer", "minimum": 0}
60
61 def test_frozen(self):
62 """Test that SubmoduleParamSpec is frozen/immutable"""
63 spec = SubmoduleParamSpec(name="param1")
64 with pytest.raises(AttributeError):
65 spec.name = "new_name"
66
67
68class TestSubmoduleFunctionSpec:

Callers

nothing calls this directly

Calls 1

SubmoduleParamSpecClass · 0.90

Tested by

no test coverage detected