MCPcopy
hub / github.com/pytest-dev/pytest / test_homedir_from_HOME

Function test_homedir_from_HOME

testing/_py/test_local.py:1187–1190  ·  view source on GitHub ↗
(monkeypatch)

Source from the content-addressed store, hash-verified

1185
1186
1187def test_homedir_from_HOME(monkeypatch):
1188 path = os.getcwd()
1189 monkeypatch.setenv("HOME", path)
1190 assert local._gethomedir() == local(path)
1191
1192
1193def test_homedir_not_exists(monkeypatch):

Callers

nothing calls this directly

Calls 2

setenvMethod · 0.80
_gethomedirMethod · 0.80

Tested by

no test coverage detected