MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / test_dict_fallback

Method test_dict_fallback

tests/unit/test_serialization.py:415–418  ·  view source on GitHub ↗

Test fallback to __dict__.

(self)

Source from the content-addressed store, hash-verified

413 assert model_to_dict(parse_model) == {"name": "test", "value": 42}
414
415 def test_dict_fallback(self):
416 """Test fallback to __dict__."""
417 simple_model = SimpleModel("test value")
418 assert model_to_dict(simple_model) == {"value": "test value"}
419
420 def test_dict_fallback_exception_handling(self):
421 """Test exception handling in dict fallback."""

Callers

nothing calls this directly

Calls 2

model_to_dictFunction · 0.90
SimpleModelClass · 0.70

Tested by

no test coverage detected