(self)
| 69 | |
| 70 | @SkipIfNoModule("ignite") |
| 71 | def test_createdir(self): |
| 72 | with tempfile.TemporaryDirectory() as tempdir: |
| 73 | output_dir = os.path.join(tempdir, "new_dir") |
| 74 | |
| 75 | handler = LogfileHandler(output_dir=output_dir) |
| 76 | handler.attach(self.engine) |
| 77 | |
| 78 | self.engine.run(range(3)) |
| 79 | |
| 80 | self.assertTrue(os.path.isfile(os.path.join(output_dir, "log.txt"))) |
| 81 | |
| 82 | |
| 83 | if __name__ == "__main__": |
nothing calls this directly
no test coverage detected