MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / test_unicode_in_response

Method test_unicode_in_response

tests/models/test_openai_api.py:546–549  ·  view source on GitHub ↗
(self, api)

Source from the content-addressed store, hash-verified

544 assert api.presence_penalty == 0.1
545
546 def test_unicode_in_response(self, api):
547 data = {"choices": [{"message": {"content": "你好世界 🌍"}}]}
548 result = api._parse_openai_response(data)
549 assert "你好世界" in result
550
551 def test_very_long_response(self, api):
552 long_content = "A" * 100000

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected