MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_chdir_with_str

Function test_chdir_with_str

testing/test_monkeypatch.py:275–277  ·  view source on GitHub ↗
(mp: MonkeyPatch, tmp_path: Path)

Source from the content-addressed store, hash-verified

273
274
275def test_chdir_with_str(mp: MonkeyPatch, tmp_path: Path) -> None:
276 mp.chdir(str(tmp_path))
277 assert os.getcwd() == str(tmp_path)
278
279
280def test_chdir_undo(mp: MonkeyPatch, tmp_path: Path) -> None:

Callers

nothing calls this directly

Calls 1

chdirMethod · 0.45

Tested by

no test coverage detected