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

Method setUp

tests/manager/log_manager_test.py:10–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8
9class TestLogManager(unittest.TestCase):
10 def setUp(self):
11 self.temp_dir = tempfile.TemporaryDirectory()
12 self.log_path = os.path.join(self.temp_dir.name, "test.log")
13 with open(self.log_path, "w") as f:
14 f.write("INFO Start\nWARN Something\nERROR FindMe\nDEBUG End\n")
15
16 def tearDown(self):
17 self.temp_dir.cleanup()

Callers

nothing calls this directly

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected