MCPcopy Index your code
hub / github.com/ipython/ipython / test_get_xdg_dir_1

Function test_get_xdg_dir_1

tests/test_path.py:224–232  ·  view source on GitHub ↗

test_get_xdg_dir_1, check nonexistent xdg_dir

(monkeypatch)

Source from the content-addressed store, hash-verified

222
223@with_environment
224def test_get_xdg_dir_1(monkeypatch):
225 """test_get_xdg_dir_1, check nonexistent xdg_dir"""
226 monkeypatch.setattr(path, "get_home_dir", lambda: HOME_TEST_DIR)
227 monkeypatch.setattr(os, "name", "posix")
228 monkeypatch.setattr(sys, "platform", "linux2")
229 env.pop("IPYTHON_DIR", None)
230 env.pop("IPYTHONDIR", None)
231 env.pop("XDG_CONFIG_HOME", None)
232 assert path.get_xdg_dir() is None
233
234
235@with_environment

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…