MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / test_logfile

Method test_logfile

tests/utils/test_handler_logfile.py:49–56  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

47
48 @SkipIfNoModule("ignite")
49 def test_logfile(self):
50 with tempfile.TemporaryDirectory() as tempdir:
51 handler = LogfileHandler(output_dir=tempdir)
52 handler.attach(self.engine)
53
54 self.engine.run(range(3))
55
56 self.assertTrue(os.path.isfile(os.path.join(tempdir, "log.txt")))
57
58 @SkipIfNoModule("ignite")
59 def test_filename(self):

Callers

nothing calls this directly

Calls 3

attachMethod · 0.95
LogfileHandlerClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected