(mp: MonkeyPatch, tmp_path: Path)
| 278 | |
| 279 | |
| 280 | def test_chdir_undo(mp: MonkeyPatch, tmp_path: Path) -> None: |
| 281 | cwd = os.getcwd() |
| 282 | mp.chdir(tmp_path) |
| 283 | mp.undo() |
| 284 | assert os.getcwd() == cwd |
| 285 | |
| 286 | |
| 287 | def test_chdir_double_undo(mp: MonkeyPatch, tmp_path: Path) -> None: |