(self)
| 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): |
nothing calls this directly
no test coverage detected