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

Method test_parse_method

tests/unit/test_serialization.py:410–413  ·  view source on GitHub ↗

Test models with parse method.

(self)

Source from the content-addressed store, hash-verified

408
409 @pytest.mark.skip(reason="parse() method handling is currently commented out in the implementation")
410 def test_parse_method(self):
411 """Test models with parse method."""
412 parse_model = ModelWithParse({"name": "test", "value": 42})
413 assert model_to_dict(parse_model) == {"name": "test", "value": 42}
414
415 def test_dict_fallback(self):
416 """Test fallback to __dict__."""

Callers

nothing calls this directly

Calls 2

model_to_dictFunction · 0.90
ModelWithParseClass · 0.85

Tested by

no test coverage detected