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