MCPcopy Create free account
hub / github.com/github/copilot-sdk / test_dict_is_json_serialized

Method test_dict_is_json_serialized

python/test_tools.py:273–277  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271 assert result.result_type == "failure"
272
273 def test_dict_is_json_serialized(self):
274 result = _normalize_result({"key": "value", "num": 42})
275 parsed = json.loads(result.text_result_for_llm)
276 assert parsed == {"key": "value", "num": 42}
277 assert result.result_type == "success"
278
279 def test_list_is_json_serialized(self):
280 result = _normalize_result(["a", "b", "c"])

Callers

nothing calls this directly

Calls 1

_normalize_resultFunction · 0.90

Tested by

no test coverage detected