MCPcopy Create free account
hub / github.com/modelscope/ms-agent / test_code_file

Method test_code_file

tests/tools/test_code_file.py:13–21  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11
12 @unittest.skipUnless(test_level() >= 0, 'skip test in current test level')
13 def test_code_file(self):
14
15 async def main():
16 engine = AgentLoader.build(
17 'ms-agent/simple_agent_code', trust_remote_code=True)
18 messages = await engine.run('who are you?')
19 self.assertTrue('😁' in messages[-1].content)
20
21 asyncio.run(main())
22
23
24if __name__ == '__main__':

Callers

nothing calls this directly

Calls 2

mainFunction · 0.50
runMethod · 0.45

Tested by

no test coverage detected