(self, tmpdir)
| 780 | old.chdir() |
| 781 | |
| 782 | def test_ensure_filepath_withdir(self, tmpdir): |
| 783 | newfile = tmpdir.join("test1", "test") |
| 784 | newfile.ensure() |
| 785 | assert newfile.check(file=1) |
| 786 | newfile.write_text("42", encoding="utf-8") |
| 787 | newfile.ensure() |
| 788 | s = newfile.read_text(encoding="utf-8") |
| 789 | assert s == "42" |
| 790 | |
| 791 | def test_ensure_filepath_withoutdir(self, tmpdir): |
| 792 | newfile = tmpdir.join("test1file") |
nothing calls this directly
no test coverage detected