A temporary directory added to sys.path.
(tmp_path, monkeypatch)
| 129 | |
| 130 | @pytest.fixture |
| 131 | def modules_tmp_path(tmp_path, monkeypatch): |
| 132 | """A temporary directory added to sys.path.""" |
| 133 | rv = tmp_path / "modules_tmp" |
| 134 | rv.mkdir() |
| 135 | monkeypatch.syspath_prepend(os.fspath(rv)) |
| 136 | return rv |
| 137 | |
| 138 | |
| 139 | @pytest.fixture |
nothing calls this directly
no outgoing calls
no test coverage detected