MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / setUp

Method setUp

tests/utils/log_test.py:68–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66
67class LogTest(unittest.TestCase):
68 def setUp(self):
69 if ray.is_initialized():
70 ray.shutdown()
71 self.config = get_template_config()
72 self.config.check_and_update()
73 self.log_dir = self.config.log.save_dir
74 shutil.rmtree(self.log_dir, ignore_errors=True)
75 os.makedirs(self.log_dir, exist_ok=True)
76
77 def test_no_actor_log(self):
78 ray.init(

Callers

nothing calls this directly

Calls 3

get_template_configFunction · 0.90
check_and_updateMethod · 0.80
shutdownMethod · 0.45

Tested by

no test coverage detected