test_get_xdg_dir_0, check xdg_dir
(monkeypatch)
| 208 | |
| 209 | @with_environment |
| 210 | def test_get_xdg_dir_0(monkeypatch): |
| 211 | """test_get_xdg_dir_0, check xdg_dir""" |
| 212 | monkeypatch.setattr(path, "_writable_dir", lambda path: True) |
| 213 | monkeypatch.setattr(path, "get_home_dir", lambda: "somewhere") |
| 214 | monkeypatch.setattr(os, "name", "posix") |
| 215 | monkeypatch.setattr(sys, "platform", "linux2") |
| 216 | env.pop("IPYTHON_DIR", None) |
| 217 | env.pop("IPYTHONDIR", None) |
| 218 | env.pop("XDG_CONFIG_HOME", None) |
| 219 | |
| 220 | assert path.get_xdg_dir() == os.path.join("somewhere", ".config") |
| 221 | |
| 222 | |
| 223 | @with_environment |
nothing calls this directly
no test coverage detected
searching dependent graphs…